Skip to content

Commit

Permalink
GEODE-5757: Fixes signing on unpublished projects.
Browse files Browse the repository at this point in the history
Unpublished projects should not be signed.

Co-authored-by: Robert Houghton <[email protected]>
Co-authored-by: Jacob Barrett <[email protected]>
  • Loading branch information
jake-at-work and robbadler committed Sep 19, 2018
1 parent 94ec93d commit 5e44313
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
1 change: 0 additions & 1 deletion extensions/geode-modules-assembly/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ dependencies {
jar.enabled = true

disableMavenPublishing()
disableSigning()

def getJarArtifact(module) {
project(module).configurations.archives.artifacts.findAll {
Expand Down
1 change: 1 addition & 0 deletions gradle/publish.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ subprojects {

} // subprojects


//Prompt the user for a password to sign archives or upload artifacts, if requested
if (project.hasProperty('askpass')) {
gradle.taskGraph.whenReady { taskGraph ->
Expand Down
7 changes: 1 addition & 6 deletions gradle/utilities.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,8 @@ allprojects {
tasks.withType(GenerateMavenPom) {
it.enabled = false
}
}
}
disableSigning = {
// Use this closure when a project should not publish anything to maven.
afterEvaluate {
tasks.withType(Sign) {
onlyIf({false})
it.enabled = false
}
}
}
Expand Down

0 comments on commit 5e44313

Please sign in to comment.