Skip to content

Commit b39c386

Browse files
committed
fix maven central publication, support snapshots publication
1 parent 9d3ef53 commit b39c386

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

build.gradle

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ allprojects {
124124
javaLib.withoutGradleMetadata()
125125

126126
// skip signing for jitpack (snapshots)
127-
tasks.withType(Sign) { onlyIf { !System.getenv('JITPACK') } }
127+
tasks.withType(Sign) { onlyIf { !System.getenv('JITPACK') && !version.endsWith('-SNAPSHOT') } }
128128
}
129129

130130
// all sub-modules are normal java modules, using root BOM (like maven)
@@ -218,6 +218,8 @@ check.dependsOn subprojects.check
218218
nexusPublishing {
219219
repositories {
220220
sonatype {
221+
nexusUrl = uri("https://ossrh-staging-api.central.sonatype.com/service/local/")
222+
snapshotRepositoryUrl = uri("https://central.sonatype.com/repository/maven-snapshots/")
221223
username = findProperty('sonatypeUser')
222224
password = findProperty('sonatypePassword')
223225
}

0 commit comments

Comments
 (0)