Skip to content

Commit 1f8170b

Browse files
authored
Merge pull request #104 from zjiecode/master_zjie
修复mavenCenter签名问题,发布1.2.1
2 parents e7567f7 + 6095b8d commit 1f8170b

File tree

3 files changed

+22
-5
lines changed

3 files changed

+22
-5
lines changed

WmPlugin/gradle.properties

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ VERSION_CODE=1
2727
GROUP=io.github.meituan-dianping
2828
SUPPORT_VERSION=26.0.2
2929
POM_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
3333
POM_SCM_DEV_CONNECTION=
3434
POM_LICENCE_NAME=
3535
POM_LICENCE_URL=
@@ -38,4 +38,9 @@ POM_DEVELOPER_ID=
3838
POM_DEVELOPER_NAME=
3939

4040
ANDROID_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=

gradle.properties

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,9 @@ POM_DEVELOPER_ID=
1818
POM_DEVELOPER_NAME=
1919
ANDROID_PLUGIN_VERSION=4.2.1
2020
android.useAndroidX=true
21-
android.enableJetifier=true
21+
android.enableJetifier=true
22+
23+
#发布jcenter签名
24+
signing.keyId=
25+
signing.password=
26+
signing.secretKeyRingFile=

gradle_mvn_push.gradle

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
apply plugin: 'maven'
2+
apply plugin: 'signing'
23

34
version = VERSION_NAME
45
group = GROUP
@@ -20,6 +21,8 @@ def getPropertyFromLocalProperties(key) {
2021
uploadArchives {
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
}

0 commit comments

Comments
 (0)