From e139bfff7e196f0ae1d8939548a0deca411af72e Mon Sep 17 00:00:00 2001 From: Subkhan Sarif Date: Mon, 24 Sep 2018 17:01:41 +0700 Subject: [PATCH] Update Gradle --- build.gradle | 4 +--- library/build.gradle | 19 ++++++++++++++++++- sample/build.gradle | 2 +- 3 files changed, 20 insertions(+), 5 deletions(-) diff --git a/build.gradle b/build.gradle index 105b8d0..3cd1493 100644 --- a/build.gradle +++ b/build.gradle @@ -4,7 +4,6 @@ buildscript { ext.kotlin_version = '1.2.70' ext.kotlin_version = '1.2.50' repositories { - mavenLocal() google() jcenter() } @@ -20,7 +19,6 @@ buildscript { allprojects { repositories { - mavenLocal() google() jcenter() } @@ -33,7 +31,7 @@ apply plugin: 'com.jfrog.bintray' apply plugin: 'java-library' group = "com.subkhansarif.libs" -def versi = "1.0.8" +def versi = "1.1.2" version = versi bintray { diff --git a/library/build.gradle b/library/build.gradle index 36cc0b3..161c3fe 100644 --- a/library/build.gradle +++ b/library/build.gradle @@ -4,10 +4,26 @@ apply plugin: 'kotlin-android-extensions' apply plugin: 'maven-publish' group = "com.subkhansarif.libs" -def versi = "1.0.8" +def versi = "1.1.2" version = versi android { + signingConfigs { + release { + keyAlias System.getenv("SIGNING_KEY_ALIAS") + keyPassword System.getenv("SIGNING_KEY_PASSWORD") + storeFile file(String.valueOf(System.getenv("SIGNING_KEYSTORE"))) + storePassword System.getenv("SIGNING_STORE_PASSWORD") + } + + debug { + keyAlias "android" + keyPassword "android" + storeFile file("~/.android/debug.keystore") + storePassword "android" + } + } + compileSdkVersion 28 defaultConfig { minSdkVersion 21 @@ -93,6 +109,7 @@ publishing { bottomNavbar(MavenPublication) { artifact sourceJar artifact "$buildDir/outputs/aar/library-release.aar" + artifact "$buildDir/libs/library-$versi-sources.jar" groupId group artifactId "bottomnavbarlib" version versi diff --git a/sample/build.gradle b/sample/build.gradle index 4c73d70..de5b863 100644 --- a/sample/build.gradle +++ b/sample/build.gradle @@ -3,7 +3,7 @@ apply plugin: 'kotlin-android' apply plugin: 'kotlin-android-extensions' group = "com.subkhansarif.libs" -def versi = "1.0.8" +def versi = "1.1.2" version = versi android {