Skip to content

Commit 368ff4f

Browse files
committed
fix: maven release
1 parent f49be2e commit 368ff4f

File tree

2 files changed

+4
-12
lines changed

2 files changed

+4
-12
lines changed

build.gradle.kts

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import org.gradle.plugins.signing.Sign
2-
31
plugins {
42
kotlin("multiplatform") version "2.0.21"
53
kotlin("plugin.serialization") version "2.0.21"
@@ -180,15 +178,6 @@ tasks.clean {
180178
delete("bin")
181179
}
182180

183-
// Disable signing tasks when credentials are not available
184-
val signingKey = System.getenv("SIGN_KEY")
185-
val signingPassword = System.getenv("SIGN_KEY_PASS")
186-
if (signingKey.isNullOrBlank() || signingPassword.isNullOrBlank()) {
187-
tasks.withType<Sign>().configureEach {
188-
enabled = false
189-
}
190-
}
191-
192181
// generateJavaGrammarSource must run before jvmProcessResources
193182
tasks.named("jvmProcessResources") { dependsOn(generateJavaGrammarSource) }
194183
tasks.named("compileKotlinJvm") { dependsOn(generateJavaGrammarSource) }
@@ -293,3 +282,5 @@ tasks.register("koverPrintCoverageDetailed") {
293282
}
294283
}
295284
}
285+
286+

gradle.properties

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ kotlin.mpp.stability.nowarn=true
99

1010
# Maven Publishing
1111
# Signing is required for Maven Central but optional for local development
12-
# Set to false to skip signing when publishing to mavenLocal
12+
# Signing will be enabled in CI/CD via signAllPublications() when credentials are available
1313
mavenPublishing.signing.required=false
14+
signAllPublications=false
1415

0 commit comments

Comments
 (0)