File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change 1+ import org.gradle.plugins.signing.Sign
2+
13plugins {
24 kotlin(" multiplatform" ) version " 2.0.21"
35 kotlin(" plugin.serialization" ) version " 2.0.21"
@@ -178,6 +180,15 @@ tasks.clean {
178180 delete(" bin" )
179181}
180182
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+
181192// generateJavaGrammarSource must run before jvmProcessResources
182193tasks.named(" jvmProcessResources" ) { dependsOn(generateJavaGrammarSource) }
183194tasks.named(" compileKotlinJvm" ) { dependsOn(generateJavaGrammarSource) }
You can’t perform that action at this time.
0 commit comments