Skip to content

Commit ca8af5a

Browse files
committed
signing only happens for non jitpack builds without snapshots
1 parent 56e121d commit ca8af5a

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

build.gradle

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ buildscript {
1515
}
1616
}
1717

18+
plugins {
19+
id 'com.vanniktech.maven.publish' version '0.34.0' apply false
20+
}
21+
1822
allprojects {
1923
repositories {
2024
google()
@@ -26,3 +30,16 @@ allprojects {
2630
}
2731
}
2832
}
33+
34+
subprojects {
35+
plugins.withId('com.vanniktech.maven.publish') {
36+
def isJitpack = System.getenv('JITPACK') == 'true'
37+
def isSnapshot = version.toString().endsWith('SNAPSHOT')
38+
39+
mavenPublishing {
40+
if (!isJitpack && !isSnapshot) {
41+
signAllPublications()
42+
}
43+
}
44+
}
45+
}

gradle.properties

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ GROUP=com.tickaroo.tikxml
2323

2424
mavenCentralPublishing=true
2525
mavenCentralAutomaticPublishing=true
26-
signAllPublications=false
2726

2827
POM_DESCRIPTION=A modern XML API for Android and Java
2928
POM_URL=https://github.com/Tickaroo/tikxml

0 commit comments

Comments
 (0)