From 9d3632f337c8851c633f34dbc57682987fcf8b66 Mon Sep 17 00:00:00 2001
From: Azamat Cherchesov <azamat.cherchesov@kaspersky.com>
Date: Wed, 14 Feb 2024 11:38:35 +0300
Subject: [PATCH] TECH: turned on signing (#635)

---
 .../src/main/kotlin/convention.sonatype.gradle.kts | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

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<Sign>().configureEach {
-    onlyIf {
-        val isReleaseQueued = gradle.taskGraph.hasTask("publishAllPublicationsTo${sonatypeReleasesRepoName}Repository")
-        val isSnapshotQueued = gradle.taskGraph.hasTask("publishAllPublicationsTo${sonatypeSnapshotsRepoName}Repository")
-        isReleaseQueued || isSnapshotQueued
-    }
-}
+//tasks.withType<Sign>().configureEach {
+//    onlyIf {
+//        val isReleaseQueued = gradle.taskGraph.hasTask("publishAllPublicationsTo${sonatypeReleasesRepoName}Repository")
+//        val isSnapshotQueued = gradle.taskGraph.hasTask("publishAllPublicationsTo${sonatypeSnapshotsRepoName}Repository")
+//        isReleaseQueued || isSnapshotQueued
+//    }
+//}