Skip to content

Commit 00ddc64

Browse files
committed
Do not try to close staging repository when publishing a snapshot build
1 parent 22ca89e commit 00ddc64

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

buildSrc/src/main/kotlin/net/kautler/publishing.gradle.kts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -357,6 +357,10 @@ tasks.beforeReleaseBuild {
357357
dependsOn(tasks.named("pitest"))
358358
}
359359

360+
tasks.closeRepository {
361+
enabled = releaseVersion
362+
}
363+
360364
tasks.publish {
361365
dependsOn(tasks.closeRepository)
362366
}

0 commit comments

Comments
 (0)