spring-security/gradle/deploy-artifacts.gradle

12 lines
281 B
Groovy
Raw Permalink Normal View History

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