Skip to content

Commit 3b79546

Browse files
Sign Maven publications only when signing key is configured.
Avoid CI failures on publishToMavenLocal with -Pdevelopment=false when no signing credentials are available. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 5446aef commit 3b79546

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎lightsaber/publish.gradle‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
apply plugin: 'com.vanniktech.maven.publish'
22

33
def isDevelopment = providers.gradleProperty('development').map { it.toBoolean() }.getOrElse(true)
4+
def hasSigningKey = providers.gradleProperty('signingInMemoryKey').isPresent()
45

56
mavenPublishing {
67
publishToMavenCentral(true)
78

8-
if (!isDevelopment) {
9+
if (!isDevelopment && hasSigningKey) {
910
signAllPublications()
1011
}
1112

0 commit comments

Comments
 (0)