mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-08-16 14:33:34 +00:00
12 lines
281 B
Groovy
12 lines
281 B
Groovy
def isSnapshot = version?.matches(/^.*[.-]BUILD-SNAPSHOT$/)
|
|
|
|
task deployArtifacts {
|
|
group = 'Deploy tasks'
|
|
description = "Deploys the artifacts to either Artifactory or Maven Central"
|
|
if(isSnapshot) {
|
|
dependsOn "artifactoryPublish"
|
|
} else {
|
|
dependsOn "uploadArchives"
|
|
}
|
|
}
|