From 3b1085dad1f7e2a5bb3c9a3a97071626f56635a6 Mon Sep 17 00:00:00 2001 From: Yacine Rezgui Date: Fri, 11 Jun 2021 11:09:51 +0100 Subject: [PATCH 1/2] Add ability to publish to maven locally --- build.gradle | 3 ++- gradle.properties | 18 +++++++++++++++--- mediastore/build.gradle | 1 + mediastore/gradle.properties | 2 +- 4 files changed, 19 insertions(+), 5 deletions(-) diff --git a/build.gradle b/build.gradle index 55517f50..979b85d1 100644 --- a/build.gradle +++ b/build.gradle @@ -34,7 +34,8 @@ buildscript { plugins { id "com.diffplug.spotless" version "5.12.5" id "org.jetbrains.dokka" version "1.4.32" - id "me.tylerbwong.gradle.metalava" version "0.1.7" apply false + id "me.tylerbwong.gradle.metalava" version "0.1.7" apply false + id "com.vanniktech.maven.publish" version "0.15.1" apply false } allprojects { diff --git a/gradle.properties b/gradle.properties index c5ffc13b..fc8ff53b 100644 --- a/gradle.properties +++ b/gradle.properties @@ -13,7 +13,6 @@ # See the License for the specific language governing permissions and # limitations under the License. # - # Project-wide Gradle settings. # IDE (e.g. Android Studio) users: # Gradle settings configured through the IDE *will override* @@ -32,6 +31,19 @@ org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8 # https://developer.android.com/topic/libraries/support-library/androidx-rn android.useAndroidX=true # Automatically convert third-party libraries to use AndroidX -android.enableJetifier=true +android.enableJetifier=false # Kotlin code style for this project: "official" or "obsolete": -kotlin.code.style=official \ No newline at end of file +kotlin.code.style=official +GROUP=com.google.modernstorage +VERSION_NAME=1.0.0-alpha01 +POM_DESCRIPTION=Utility libraries for storage interactions on Android +POM_URL=https://github.com/google/modernstorage/ +POM_SCM_URL=https://github.com/google/modernstorage/ +POM_SCM_CONNECTION=scm:git:git://github.com/google/modernstorage.git +POM_SCM_DEV_CONNECTION=scm:git:git://github.com/google/modernstorage.git +POM_LICENCE_NAME=The Apache Software License, Version 2.0 +POM_LICENCE_URL=http://www.apache.org/licenses/LICENSE-2.0.txt +POM_LICENCE_DIST=repo +POM_DEVELOPER_ID=google +POM_DEVELOPER_NAME=Google +RELEASE_SIGNING_ENABLED=false \ No newline at end of file diff --git a/mediastore/build.gradle b/mediastore/build.gradle index f3e16531..961ccbc4 100644 --- a/mediastore/build.gradle +++ b/mediastore/build.gradle @@ -17,6 +17,7 @@ plugins { id 'com.android.library' id 'kotlin-android' id 'org.jetbrains.dokka' + id 'com.vanniktech.maven.publish' } android { diff --git a/mediastore/gradle.properties b/mediastore/gradle.properties index b7a3f86c..387965b1 100644 --- a/mediastore/gradle.properties +++ b/mediastore/gradle.properties @@ -1,3 +1,3 @@ POM_ARTIFACT_ID=modernstorage-mediastore -POM_NAME=ModernStorage MediaStore library +POM_NAME=ModernStorage MediaStore POM_PACKAGING=aar \ No newline at end of file From a0a2c882c09829814e7c84ac56d0e563a8397d7b Mon Sep 17 00:00:00 2001 From: Yacine Rezgui Date: Fri, 11 Jun 2021 15:25:43 +0100 Subject: [PATCH 2/2] Enable release signing --- gradle.properties | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gradle.properties b/gradle.properties index fc8ff53b..7f432080 100644 --- a/gradle.properties +++ b/gradle.properties @@ -45,5 +45,4 @@ POM_LICENCE_NAME=The Apache Software License, Version 2.0 POM_LICENCE_URL=http://www.apache.org/licenses/LICENSE-2.0.txt POM_LICENCE_DIST=repo POM_DEVELOPER_ID=google -POM_DEVELOPER_NAME=Google -RELEASE_SIGNING_ENABLED=false \ No newline at end of file +POM_DEVELOPER_NAME=Google \ No newline at end of file