From 372b1ad30f3b3b27baed452ccf8a114612850f0e Mon Sep 17 00:00:00 2001 From: Jenly Date: Sun, 25 Apr 2021 15:24:18 +0800 Subject: [PATCH] maven publish --- app-dialog/build.gradle | 3 ++- app-dialog/gradle.properties | 3 +++ app-updater/build.gradle | 3 ++- app-updater/gradle.properties | 3 +++ build.gradle | 4 +++- gradle.properties | 24 +++++++++++++++++++++++- gradle/wrapper/gradle-wrapper.properties | 2 +- versions.gradle | 1 + 8 files changed, 38 insertions(+), 5 deletions(-) create mode 100644 app-dialog/gradle.properties create mode 100644 app-updater/gradle.properties diff --git a/app-dialog/build.gradle b/app-dialog/build.gradle index 69de2f5..ef8179f 100644 --- a/app-dialog/build.gradle +++ b/app-dialog/build.gradle @@ -1,5 +1,6 @@ apply plugin: 'com.android.library' -apply from: 'bintray.gradle' +//apply from: 'bintray.gradle' +apply plugin: "com.vanniktech.maven.publish" android { diff --git a/app-dialog/gradle.properties b/app-dialog/gradle.properties new file mode 100644 index 0000000..a022555 --- /dev/null +++ b/app-dialog/gradle.properties @@ -0,0 +1,3 @@ +POM_NAME=App Dialog +POM_ARTIFACT_ID=app-dialog +POM_PACKAGING=aar \ No newline at end of file diff --git a/app-updater/build.gradle b/app-updater/build.gradle index c7f0cca..39dc8dd 100644 --- a/app-updater/build.gradle +++ b/app-updater/build.gradle @@ -1,5 +1,6 @@ apply plugin: 'com.android.library' -apply from: 'bintray.gradle' +//apply from: 'bintray.gradle' +apply plugin: "com.vanniktech.maven.publish" android { diff --git a/app-updater/gradle.properties b/app-updater/gradle.properties new file mode 100644 index 0000000..6194701 --- /dev/null +++ b/app-updater/gradle.properties @@ -0,0 +1,3 @@ +POM_NAME=App Updater +POM_ARTIFACT_ID=app-updater +POM_PACKAGING=aar \ No newline at end of file diff --git a/build.gradle b/build.gradle index e25b4ee..7b5e02f 100644 --- a/build.gradle +++ b/build.gradle @@ -6,9 +6,11 @@ buildscript { addRepos(repositories) dependencies { - classpath 'com.android.tools.build:gradle:3.2.1' + classpath 'com.android.tools.build:gradle:4.1.1' classpath 'com.novoda:bintray-release:0.9' + + classpath 'com.vanniktech:gradle-maven-publish-plugin:0.13.0' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } diff --git a/gradle.properties b/gradle.properties index dc251f5..acec75b 100644 --- a/gradle.properties +++ b/gradle.properties @@ -12,4 +12,26 @@ org.gradle.jvmargs=-Xmx1536m # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects # org.gradle.parallel=true android.useAndroidX=true -android.enableJetifier=true \ No newline at end of file +android.enableJetifier=true + + + + +VERSION_NAME=1.0.10-androidx +VERSION_CODE=18 +GROUP=com.github.jenly1314.AppUpdater + +POM_DESCRIPTION=AppUpdater for Android +POM_URL=https://github.com/jenly1314/AppUpdater +POM_SCM_URL=https://github.com/jenly1314/AppUpdater +POM_SCM_CONNECTION=scm:git@github.com:jenly1314/AppUpdater.git +POM_SCM_DEV_CONNECTION=scm:git@github.com:jenly1314/AppUpdater.git +POM_LICENCE_NAME=The MIT License +POM_LICENCE_URL=https://opensource.org/licenses/mit-license.php +#POM_LICENCE_NAME=The Apache Software License, Version 2.0 +#POM_LICENCE_URL=http://www.apache.org/licenses/LICENSE-2.0.txt +POM_DEVELOPER_ID=jenly +POM_DEVELOPER_NAME=Jenly Yu +RELEASE_REPOSITORY_URL=https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/ +SNAPSHOT_REPOSITORY_URL=https://s01.oss.sonatype.org/content/repositories/snapshots/ +RELEASE_SIGNING_ENABLED=true diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 46f9ecd..866856d 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-4.6-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-bin.zip diff --git a/versions.gradle b/versions.gradle index b93fb90..f4fe461 100644 --- a/versions.gradle +++ b/versions.gradle @@ -51,6 +51,7 @@ ext.deps = deps def addRepos(RepositoryHandler handler) { handler.google() + handler.mavenCentral() handler.jcenter() } ext.addRepos = this.&addRepos \ No newline at end of file