spring-security/gradle/deploy-artifacts.gradle
Rob Winch ba4953b057 Add Deploy Artifacts Support
Fixes gh-7939
2020-02-05 21:21:18 -06:00

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"
}
}