Skip to content

Commit

Permalink
chore: make artifact signing disabled for non-release builds #1291
Browse files Browse the repository at this point in the history
  • Loading branch information
Ronald Holshausen committed Aug 15, 2021
1 parent 8a27dcb commit 04a1e29
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
7 changes: 3 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -189,10 +189,9 @@ subprojects {
}
}

if (System.env.CI != 'true') {
signing {
sign publishing.publications.mavenPublication
}
signing {
required { project.hasProperty('isRelease') }
sign publishing.publications.mavenPublication
}

codenarc {
Expand Down
7 changes: 3 additions & 4 deletions pact-jvm-server/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,7 @@ publishing {
}
}

if (System.env.TRAVIS != 'true') {
signing {
sign publishing.publications.serverDistribution
}
signing {
required { project.hasProperty('isRelease') }
sign publishing.publications.serverDistribution
}
2 changes: 1 addition & 1 deletion releasePrep.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ ask('Tag and Push commits?: [Y]') {
}

ask('Publish artifacts to maven central?: [Y]') {
executeOnShell './gradlew clean publish :provider:gradle:publishPlugins -S -x :pact-publish:uploadArchives'
executeOnShell './gradlew clean publish :provider:gradle:publishPlugins -S -x :pact-publish:uploadArchives -PisRelease=true'
}

ask('Publish pacts to pact-foundation.pact.dius.com.au?: [Y]') {
Expand Down

1 comment on commit 04a1e29

@kflorence
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❤️

Please sign in to comment.