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

34 lines
653 B
Groovy

apply plugin: "com.jfrog.artifactory"
def isSnapshot = version?.matches(/^.*[.-]BUILD-SNAPSHOT$/)
artifactory {
contextUrl = 'https://repo.spring.io'
publish {
repository {
repoKey = isSnapshot ? 'libs-snapshot-local' : 'libs-release-local'
if(project.hasProperty('artifactoryUsername')) {
username = artifactoryUsername
password = artifactoryPassword
}
}
}
}
artifactoryPublish {
publishConfigs 'archives'
publishIvy false
properties = [
'bintray.package': "${project.group}:spring-security",
'bintray.version': "${project.version}"
]
}
artifactory {
publish {
defaults {
publishConfigs('archives')
}
}
}