Skip to content

Commit

Permalink
prepare for publication to Apache repo
Browse files Browse the repository at this point in the history
  • Loading branch information
paulk-asert committed Dec 19, 2024
1 parent 51dce04 commit 838898b
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions buildSrc/src/main/groovy/geb.published-groovy-module.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,22 @@ java {
}

publishing {
repositories {
maven {
name "LocalFile"
url rootProject.layout.buildDirectory.dir("repo").get().asFile.absolutePath
}
maven {
name "Apache"
url gebModule.isSnapshot()
? 'https://repository.apache.org/content/repositories/snapshots'
: 'https://repository.apache.org/service/local/staging/deploy/maven2'
credentials {
username gebModule.isSnapshot() ? findProperty('asfNexusUsername') : findProperty('apacheUser')
password gebModule.isSnapshot() ? findProperty('asfNexusPassword') : findProperty('apachePassword')
}
}
}
publications {
main(MavenPublication) {
from components.java
Expand Down

0 comments on commit 838898b

Please sign in to comment.