Skip to content

Commit

Permalink
Merge pull request #104 from zjiecode/master_zjie
Browse files Browse the repository at this point in the history
修复mavenCenter签名问题,发布1.2.1
  • Loading branch information
zjiecode committed Jun 7, 2021
2 parents e7567f7 + 6095b8d commit 1f8170b
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 5 deletions.
13 changes: 9 additions & 4 deletions WmPlugin/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ VERSION_CODE=1
GROUP=io.github.meituan-dianping
SUPPORT_VERSION=26.0.2
POM_DESCRIPTION=waimai_android_router
POM_URL=
POM_SCM_URL=
POM_SCM_CONNECTION=
POM_URL=https://tech.meituan.com/2018/08/23/meituan-waimai-android-open-source-routing-framework.html
POM_SCM_URL=https://github.com/meituan/WMRouter
POM_SCM_CONNECTION=https://github.com/meituan/WMRouter
POM_SCM_DEV_CONNECTION=
POM_LICENCE_NAME=
POM_LICENCE_URL=
Expand All @@ -38,4 +38,9 @@ POM_DEVELOPER_ID=
POM_DEVELOPER_NAME=

ANDROID_PLUGIN_VERSION=4.2.1
android.enableJetifier=true
android.enableJetifier=true

#发布jcenter签名
signing.keyId=
signing.password=
signing.secretKeyRingFile=
7 changes: 6 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,9 @@ POM_DEVELOPER_ID=
POM_DEVELOPER_NAME=
ANDROID_PLUGIN_VERSION=4.2.1
android.useAndroidX=true
android.enableJetifier=true
android.enableJetifier=true

#发布jcenter签名
signing.keyId=
signing.password=
signing.secretKeyRingFile=
7 changes: 7 additions & 0 deletions gradle_mvn_push.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
apply plugin: 'maven'
apply plugin: 'signing'

version = VERSION_NAME
group = GROUP
Expand All @@ -20,6 +21,8 @@ def getPropertyFromLocalProperties(key) {
uploadArchives {
repositories {
mavenDeployer {
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }

def user = getPropertyFromLocalProperties("NEXUS_USERNAME")
def password = getPropertyFromLocalProperties("NEXUS_PASSWORD")

Expand Down Expand Up @@ -84,4 +87,8 @@ afterEvaluate { project ->
archives javadocJar, sourcesJar
}
}
}

signing {
sign configurations.archives
}

0 comments on commit 1f8170b

Please sign in to comment.