diff --git a/build-logic/publication/src/main/kotlin/convention.sonatype.gradle.kts b/build-logic/publication/src/main/kotlin/convention.sonatype.gradle.kts index a6a5dddb9..f54d2eeab 100644 --- a/build-logic/publication/src/main/kotlin/convention.sonatype.gradle.kts +++ b/build-logic/publication/src/main/kotlin/convention.sonatype.gradle.kts @@ -41,10 +41,10 @@ signing { useInMemoryPgpKeys(signingKeyId, signingKey, signingPassword) } -tasks.withType().configureEach { - onlyIf { - val isReleaseQueued = gradle.taskGraph.hasTask("publishAllPublicationsTo${sonatypeReleasesRepoName}Repository") - val isSnapshotQueued = gradle.taskGraph.hasTask("publishAllPublicationsTo${sonatypeSnapshotsRepoName}Repository") - isReleaseQueued || isSnapshotQueued - } -} +//tasks.withType().configureEach { +// onlyIf { +// val isReleaseQueued = gradle.taskGraph.hasTask("publishAllPublicationsTo${sonatypeReleasesRepoName}Repository") +// val isSnapshotQueued = gradle.taskGraph.hasTask("publishAllPublicationsTo${sonatypeSnapshotsRepoName}Repository") +// isReleaseQueued || isSnapshotQueued +// } +//}