bintrayUpload.gradle 998 B

12345678910111213141516171819202122232425262728
  1. apply plugin: 'maven-publish'
  2. apply plugin: 'maven'
  3. Properties properties = new Properties()
  4. properties.load(project.rootProject.file('local.properties').newDataInputStream())
  5. uploadArchives {
  6. repositories {
  7. mavenDeployer {
  8. repository(url: properties.getProperty("POM_URL")) {
  9. authentication(userName: properties.getProperty("nexus.user"), password: properties.getProperty("nexus.password"))
  10. }
  11. pom.groupId = properties.getProperty("POM_GROUP_ID")
  12. pom.artifactId = properties.getProperty("POM_ATRIFACT_ID")
  13. pom.version = properties.getProperty("POM_VERSION")
  14. pom.project {
  15. licenses {
  16. license {
  17. name 'The Apache Software License, Version 2.0'
  18. url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
  19. }
  20. }
  21. }
  22. }
  23. }
  24. }
  25. //gradlew uploadArchives terminal中输入