Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2018
482
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.55 KB | None | 0 0
  1. uploadArchives {
  2. repositories {
  3. mavenDeployer {
  4. if (project.hasProperty("local_maven") || project.hasProperty("maven_pass")) {
  5. if (project.hasProperty("maven_pass")) {
  6. println "Uploading to remote maven."
  7. repository(url: "http://maven_upload.covers1624.net/") {
  8. authentication(userName: "KitsuneAlex", password: project.getProperty("maven_pass"))
  9. }
  10. } else {
  11. println "Uploading to local maven."
  12. repository(url: "file://${local_maven}")
  13. }
  14. pom {
  15. groupId = project.group
  16. artifactId = project.archivesBaseName
  17. project {
  18. name project.archivesBaseName
  19. packaging 'jar'
  20. description 'Graphene'
  21. url 'https://github.com/CarbonMC/Graphene'
  22.  
  23. scm {
  24. url 'https://github.com/CarbonMC/Graphene'
  25. connection 'scm:git:git://github.com/CarbonMC/Graphene.git'
  26. developerConnection 'scm:git:git@github.com:CarbonMC/Graphene.git'
  27. }
  28.  
  29. issueManagement {
  30. system 'github'
  31. url 'https://github.com/CarbonMC/Graphene/issues'
  32. }
  33.  
  34. licenses {
  35. license {
  36. name 'GNU Lesser Public License (GPL), Version 2.1'
  37. url 'https://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt'
  38. distribution 'repo'
  39. }
  40. }
  41.  
  42. developers {
  43. developer {
  44. id 'KitsuneAlex'
  45. name 'KitsuneAlex'
  46. roles { role 'developer' }
  47. }
  48. }
  49. }
  50. }
  51. }
  52. }
  53. }
  54. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement