This commit is contained in:
18
gradle/publishing-ossrh.gradle
Normal file
18
gradle/publishing-ossrh.gradle
Normal file
@@ -0,0 +1,18 @@
|
||||
// SPDX-FileCopyrightText: The openTCS Authors
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
nexusPublishing {
|
||||
if (Boolean.valueOf(project.findProperty('DO_DEPLOY_OSSRH'))
|
||||
&& project.hasProperty('DEPLOY_REPO_OSSRH_USERNAME')
|
||||
&& project.hasProperty('DEPLOY_REPO_OSSRH_PASSWORD')) {
|
||||
repositories {
|
||||
sonatype {
|
||||
nexusUrl.set(uri('https://s01.oss.sonatype.org/service/local/'))
|
||||
snapshotRepositoryUrl.set(uri('https://s01.oss.sonatype.org/content/repositories/snapshots/'))
|
||||
|
||||
username = project.property('DEPLOY_REPO_OSSRH_USERNAME')
|
||||
password = project.property('DEPLOY_REPO_OSSRH_PASSWORD')
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user