mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-08-18 23:37:08 +00:00
14 lines
481 B
Groovy
14 lines
481 B
Groovy
def isSnapshot = version?.matches(/^.*[.-]BUILD-SNAPSHOT$/)
|
|
def isRelease = !isSnapshot
|
|
|
|
task finalizeDeployArtifacts {
|
|
}
|
|
|
|
if (isRelease && project.hasProperty("ossrhUsername")) {
|
|
project.ext.nexusUsername = project.ossrhUsername
|
|
project.ext.nexusPassword = project.ossrhPassword
|
|
project.getPluginManager().apply("io.codearte.nexus-staging")
|
|
finalizeDeployArtifacts.dependsOn project.tasks.closeAndReleaseRepository
|
|
project.nexusStaging.packageGroup = 'org.springframework'
|
|
}
|