add repositories, fix publishing for ci

This commit is contained in:
Jörg Prante 2021-05-25 13:48:10 +02:00
parent 420290fd28
commit 8eb36225eb
4 changed files with 15 additions and 9 deletions

View file

@ -28,8 +28,8 @@ subprojects {
apply from: rootProject.file('gradle/ide/idea.gradle') apply from: rootProject.file('gradle/ide/idea.gradle')
apply from: rootProject.file('gradle/compile/java.gradle') apply from: rootProject.file('gradle/compile/java.gradle')
apply from: rootProject.file('gradle/test/junit5.gradle') apply from: rootProject.file('gradle/test/junit5.gradle')
apply from: rootProject.file('gradle/repositories/maven.gradle')
apply from: rootProject.file('gradle/test/jmh.gradle') apply from: rootProject.file('gradle/test/jmh.gradle')
apply from: rootProject.file('gradle/publishing/publication.gradle') apply from: rootProject.file('gradle/publishing/publication.gradle')
} }
apply from: rootProject.file('gradle/publishing/sonatype.gradle') apply from: rootProject.file('gradle/publishing/sonatype.gradle')

View file

@ -54,7 +54,8 @@ if (project.hasProperty("signing.keyId")) {
} }
} }
nexusPublishing { if (project.hasProperty("ossrhUsername")) {
nexusPublishing {
repositories { repositories {
sonatype { sonatype {
username = project.property('ossrhUsername') username = project.property('ossrhUsername')
@ -63,4 +64,5 @@ nexusPublishing {
} }
} }
clientTimeout = Duration.ofSeconds(600) clientTimeout = Duration.ofSeconds(600)
}
} }

View file

@ -0,0 +1,4 @@
repositories {
mavenLocal()
mavenCentral()
}