artifactory.gradle 653 B

123456789101112131415161718192021222324252627282930313233
  1. apply plugin: "com.jfrog.artifactory"
  2. def isSnapshot = version?.matches(/^.*[.-]BUILD-SNAPSHOT$/)
  3. artifactory {
  4. contextUrl = 'https://repo.spring.io'
  5. publish {
  6. repository {
  7. repoKey = isSnapshot ? 'libs-snapshot-local' : 'libs-release-local'
  8. if(project.hasProperty('artifactoryUsername')) {
  9. username = artifactoryUsername
  10. password = artifactoryPassword
  11. }
  12. }
  13. }
  14. }
  15. artifactoryPublish {
  16. publishConfigs 'archives'
  17. publishIvy false
  18. properties = [
  19. 'bintray.package': "${project.group}:spring-security",
  20. 'bintray.version': "${project.version}"
  21. ]
  22. }
  23. artifactory {
  24. publish {
  25. defaults {
  26. publishConfigs('archives')
  27. }
  28. }
  29. }