From d3280d7284c5e617bf2f365ef54e2fedaf5bfd9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=91=A3=E5=AE=8F=E5=AE=87?= Date: Wed, 20 Jan 2021 12:01:24 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E6=88=90maven=E4=B8=8A=E4=BC=A0=20'co?= =?UTF-8?q?m.mogo.cloud:passport:1.0.0'=20'com.mogo.cloud:httpdns:1.0.0'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/build.gradle | 4 +++- foudations/mogo-httpdns/gradle.properties | 6 +++--- foudations/mogo-passport/build.gradle | 5 ++++- foudations/mogo-passport/gradle.properties | 4 ++++ gradle/upload.gradle | 16 +++++++++------- 5 files changed, 23 insertions(+), 12 deletions(-) create mode 100644 foudations/mogo-passport/gradle.properties diff --git a/app/build.gradle b/app/build.gradle index 5d21daa..8655739 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -29,6 +29,8 @@ dependencies { implementation fileTree(dir: "libs", include: ["*.jar"]) implementation rootProject.ext.dependencies.androidxappcompat implementation rootProject.ext.dependencies.androidxconstraintlayout - implementation project(path: ':foudations:mogo-passport') + +// implementation project(path: ':foudations:mogo-passport') + implementation 'com.mogo.cloud:passport:1.0.0' } \ No newline at end of file diff --git a/foudations/mogo-httpdns/gradle.properties b/foudations/mogo-httpdns/gradle.properties index 7c0f625..91b4997 100644 --- a/foudations/mogo-httpdns/gradle.properties +++ b/foudations/mogo-httpdns/gradle.properties @@ -1,4 +1,4 @@ -GROUP=com.mogo.httpdns -POM_ARTIFACT_ID=httpdns-helper +GROUP=com.mogo.cloud +POM_ARTIFACT_ID=httpdns VERSION_CODE=1 -VERSION_NAME=1.0.18 \ No newline at end of file +VERSION_NAME=1.0.0 \ No newline at end of file diff --git a/foudations/mogo-passport/build.gradle b/foudations/mogo-passport/build.gradle index 1b53aea..1c76b2c 100644 --- a/foudations/mogo-passport/build.gradle +++ b/foudations/mogo-passport/build.gradle @@ -33,5 +33,8 @@ dependencies { // passport implementation 'com.zhidao.tcloginsdk:tclogin:1.1.5.1' api project(path: ':foudations:mogo-httpdns') +// api 'com.mogo.cloud:httpdns:1.0.0' -} \ No newline at end of file +} + +apply from: new File(rootProject.rootDir, "gradle/upload.gradle").toString() \ No newline at end of file diff --git a/foudations/mogo-passport/gradle.properties b/foudations/mogo-passport/gradle.properties new file mode 100644 index 0000000..b35e34d --- /dev/null +++ b/foudations/mogo-passport/gradle.properties @@ -0,0 +1,4 @@ +GROUP=com.mogo.cloud +POM_ARTIFACT_ID=passport +VERSION_CODE=1 +VERSION_NAME=1.0.0 \ No newline at end of file diff --git a/gradle/upload.gradle b/gradle/upload.gradle index affad43..c1c3455 100644 --- a/gradle/upload.gradle +++ b/gradle/upload.gradle @@ -3,13 +3,15 @@ apply plugin: 'maven-publish' task loggerSourcesJar(type: Jar) { classifier = 'sources' - if (plugins.hasPlugin("java-library")) { - from sourceSets.main.java.srcDirs - } else if (plugins.hasPlugin("com.android.library")) { - from android.sourceSets.main.java.sourceFiles - } else if (plugins.hasPlugin('groovy')) { - from sourceSets.main.groovy.srcDirs - } + from android.sourceSets.main.java.srcDirs +// if (plugins.hasPlugin("java-library")) { +// from sourceSets.main.java.srcDirs +// } +// else if (plugins.hasPlugin("com.android.library")) { +// from android.sourceSets.main.java.sourceFiles +// } else if (plugins.hasPlugin('groovy')) { +// from sourceSets.main.groovy.srcDirs +// } } artifacts {