This commit is contained in:
Ziver Koc 2024-09-10 23:52:35 +02:00
parent dc98ed767e
commit 36568915c8
2 changed files with 15 additions and 2 deletions

View file

@ -10,6 +10,11 @@ publishing {
def snapshotsRepoUrl = 'http://oss.sonatype.org/content/repositories/snapshots/'
def releasesRepoUrl = 'http://oss.sonatype.org/service/local/staging/deploy/maven2/'
url = project.hasProperty('release') && !version.endsWith('SNAPSHOT') ? releasesRepoUrl : snapshotsRepoUrl
credentials {
username System.getenv('SONATYPE_NEXUS_USERNAME')
password System.getenv('SONATYPE_NEXUS_PASSWORD')
}
}
}
@ -49,6 +54,7 @@ publishing {
// Signing
signing {
useGpgCmd()
sign publishing.publications.mavenJava
}