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