Skip to content

Commit

Permalink
[tinker] Sign artifacts only when singingKeyId is provided.
Browse files Browse the repository at this point in the history
  • Loading branch information
tys282000 committed Apr 17, 2021
1 parent 22011ea commit 4e1dc8e
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions gradle/WeChatPublish.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -70,14 +70,17 @@ class WeChatPublishExtension {
project.plugins.apply('maven-publish')
}

if (!project.plugins.hasPlugin('signing')) {
project.plugins.apply('signing')
}

mountAdditionalLogic(project)

emitPublicationDSL(project)
emitSigningConfig(project)

if (project.hasProperty('signingKeyId') || project.hasProperty('signing.keyId')) {
if (!project.plugins.hasPlugin('signing')) {
project.plugins.apply('signing')
}
emitSigningConfig(project)
}

emitRepositoryDSL(project)
}

Expand Down

0 comments on commit 4e1dc8e

Please sign in to comment.