Skip to content

Commit

Permalink
Release 1.5.0 Tokyo
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderLS committed Aug 3, 2018
1 parent ed11429 commit 2cfbcb8
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions maven-push.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -204,18 +204,14 @@ afterEvaluate { project ->
dokkaFatJarPath, dokkaFatJarVersion, "dokka-fatjar-${dokkaFatJarVersion}.jar")
}

gradle.taskGraph.whenReady { taskGraph ->
if (gradle.taskGraph.hasTask('uploadArchives') ||
gradle.taskGraph.hasTask('deployOnServerRepository')) {
signing {
required {
MavenPush.with(project).isReleaseBuild()
}
sign configurations.archives
}
signing {
required {
MavenPush.with(project).isReleaseBuild() &&
(gradle.taskGraph.hasTask('uploadArchives') || gradle.taskGraph.hasTask('deployOnServerRepository'))
}
sign configurations.archives
}

task deployOnServerRepository(type: GradleBuild, dependsOn: assemble) {
description 'Deploys the artifacts to the server repository.'
tasks = ['clean', 'build', 'uploadArchives']
Expand Down

0 comments on commit 2cfbcb8

Please sign in to comment.