Skip to content

Commit

Permalink
FIX: publishing to mvn
Browse files Browse the repository at this point in the history
  • Loading branch information
nPraml committed Sep 6, 2024
1 parent 3577b83 commit 14d0543
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions buildSrc/src/main/groovy/rhino.library-conventions.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -79,3 +79,22 @@ task sourceJar(type: Jar) {
into 'META-INF'
}
}

publishing {
if (project.hasProperty("mavenPassword")) {
repositories {

maven {
credentials {
username mavenUser
password mavenPassword
}
if (project.version.endsWith('-SNAPSHOT')) {
url mavenSnapshotRepo
} else {
url mavenReleaseRepo
}
}
}
}
}

0 comments on commit 14d0543

Please sign in to comment.