File tree Expand file tree Collapse file tree 3 files changed +22
-5
lines changed
Expand file tree Collapse file tree 3 files changed +22
-5
lines changed Original file line number Diff line number Diff line change @@ -27,9 +27,9 @@ VERSION_CODE=1
2727GROUP =io.github.meituan-dianping
2828SUPPORT_VERSION =26.0.2
2929POM_DESCRIPTION =waimai_android_router
30- POM_URL =
31- POM_SCM_URL =
32- POM_SCM_CONNECTION =
30+ POM_URL =https://tech.meituan.com/2018/08/23/meituan-waimai-android-open-source-routing-framework.html
31+ POM_SCM_URL =https://github.com/meituan/WMRouter
32+ POM_SCM_CONNECTION =https://github.com/meituan/WMRouter
3333POM_SCM_DEV_CONNECTION =
3434POM_LICENCE_NAME =
3535POM_LICENCE_URL =
@@ -38,4 +38,9 @@ POM_DEVELOPER_ID=
3838POM_DEVELOPER_NAME =
3939
4040ANDROID_PLUGIN_VERSION =4.2.1
41- android.enableJetifier =true
41+ android.enableJetifier =true
42+
43+ # 发布jcenter签名
44+ signing.keyId =
45+ signing.password =
46+ signing.secretKeyRingFile =
Original file line number Diff line number Diff line change @@ -18,4 +18,9 @@ POM_DEVELOPER_ID=
1818POM_DEVELOPER_NAME =
1919ANDROID_PLUGIN_VERSION =4.2.1
2020android.useAndroidX =true
21- android.enableJetifier =true
21+ android.enableJetifier =true
22+
23+ # 发布jcenter签名
24+ signing.keyId =
25+ signing.password =
26+ signing.secretKeyRingFile =
Original file line number Diff line number Diff line change 11apply plugin : ' maven'
2+ apply plugin : ' signing'
23
34version = VERSION_NAME
45group = GROUP
@@ -20,6 +21,8 @@ def getPropertyFromLocalProperties(key) {
2021uploadArchives {
2122 repositories {
2223 mavenDeployer {
24+ beforeDeployment { MavenDeployment deployment -> signing. signPom(deployment) }
25+
2326 def user = getPropertyFromLocalProperties(" NEXUS_USERNAME" )
2427 def password = getPropertyFromLocalProperties(" NEXUS_PASSWORD" )
2528
@@ -84,4 +87,8 @@ afterEvaluate { project ->
8487 archives javadocJar, sourcesJar
8588 }
8689 }
90+ }
91+
92+ signing {
93+ sign configurations. archives
8794}
You can’t perform that action at this time.
0 commit comments