opentcs/gradle/publishing-ossrh.gradle
CaiXiang aa56926258
Some checks failed
Gradle Build / build (push) Has been cancelled
Initial commit
2024-11-30 18:36:13 +08:00

19 lines
647 B
Groovy

// 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')
}
}
}
}