Tweak publishing settings (#1877)

This commit is contained in:
Anuraag Agrawal 2020-12-10 17:06:52 +09:00 committed by GitHub
parent 8976e921d0
commit a2842dc4dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,5 @@
import java.time.Duration
apply plugin: 'maven-publish'
apply plugin: 'signing'
@ -7,6 +9,9 @@ nexusPublishing {
repositories {
sonatype()
}
connectTimeout = Duration.ofMinutes(5)
clientTimeout = Duration.ofMinutes(5)
}
publishing {
@ -86,7 +91,7 @@ private String artifactPrefix(Project p, String archivesBaseName) {
}
rootProject.tasks.release.finalizedBy tasks.publishToSonatype
rootProject.tasks.closeAndReleaseRepository.dependsOn tasks.publishToSonatype
rootProject.tasks.closeAndReleaseRepository.mustRunAfter tasks.publishToSonatype
tasks.withType(Sign).configureEach {
onlyIf { System.getenv("CI") != null }