bintray.gradle 981 B

123456789101112131415161718192021222324252627282930313233343536
  1. // Handles publication of distributions to Bintray
  2. apply plugin: 'com.jfrog.bintray'
  3. def attr = { String name -> project."$name" }
  4. bintray {
  5. user = bintrayUsername
  6. key = bintrayKey
  7. publications = ['dist']
  8. publish = true
  9. filesSpec {
  10. from "${project.buildDir}/outputs/aar/${project.name}-${project.version}.tar.gz"
  11. into "."
  12. }
  13. pkg {
  14. repo = attr 'project_bintray_repo'
  15. name = attr 'name'
  16. userOrg = attr 'project_bintray_org'
  17. desc = attr 'project_description'
  18. licenses = ['Apache-2.0']
  19. labels = ['android', 'beacon', 'BLE', 'bluetooth']
  20. version {
  21. name = attr 'version'
  22. gpg {
  23. sign = true
  24. passphrase = attr 'signingPassword'
  25. }
  26. mavenCentralSync {
  27. sync = true
  28. user = attr 'sonatypeUserName'
  29. password = attr 'sonatypePassword'
  30. }
  31. }
  32. }
  33. }