Skip to content

Commit

Permalink
Merge pull request #123 from nulab/patch-121-2
Browse files Browse the repository at this point in the history
Change the position of the defining signing (#121)
  • Loading branch information
vvatanabe authored Apr 5, 2022
2 parents d5ae76a + e94dfbb commit 882da32
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -75,15 +75,6 @@ configurations {
deployerJars
}

if (project.hasProperty("signing.keyId")) {
signing {
// Skip signing snapshot archives
if (System.env.GITHUB_ACTIONS || !isReleaseVersion) return

sign configurations.archives
}
}

publishing {
repositories {
maven {
Expand Down Expand Up @@ -136,6 +127,15 @@ publishing {
}
}

if (project.hasProperty("signing.keyId")) {
signing {
// Skip signing snapshot archives
if (System.env.GITHUB_ACTIONS || !isReleaseVersion) return

sign publishing.publications.mavenJava
}
}

test {
maxParallelForks = Runtime.runtime.availableProcessors().intdiv(2) ?: 1
forkEvery = 4
Expand Down

0 comments on commit 882da32

Please sign in to comment.