diff --git a/build.gradle b/build.gradle index 0350f27..b120e2c 100644 --- a/build.gradle +++ b/build.gradle @@ -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 { @@ -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