Advertisement
Guest User

Untitled

a guest
Sep 20th, 2017
292
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.71 KB | None | 0 0
  1. apply plugin: 'java'
  2. apply plugin: 'maven'
  3. apply plugin: 'maven-publish'
  4.  
  5. version = "${plugin_version}"
  6. group = "${group}"
  7. archivesBaseName = "${baseName}"
  8.  
  9. sourceCompatibility = JavaVersion.VERSION_1_8
  10. targetCompatibility = JavaVersion.VERSION_1_8
  11.  
  12. configurations {
  13. shade
  14. compile.extendsFrom shade
  15. }
  16. ext {
  17. nexusUsername = "$System.env.NEXUS_USERNAME"
  18. nexusPassword = "$System.env.NEXUS_PASSWORD"
  19. }
  20. uploadArchives {
  21. repositories {
  22. mavenDeployer {
  23. repository(url: "http://repo.mallmc.info/repository/MallMC/") {
  24. authentication(userName: nexusUsername, password: nexusPassword)
  25. }
  26. }
  27. }
  28. }
  29.  
  30.  
  31. publishing {
  32. publications {
  33. mavenJava(MavenPublication) {
  34. from components.java
  35. }
  36. }
  37. }
  38. repositories {
  39. mavenLocal()
  40.  
  41. maven {
  42. name "MongoDB"
  43. url 'https://oss.sonatype.org/content/repositories/snapshots'
  44. }
  45.  
  46. maven {
  47. name "Redis"
  48. url "http://central.maven.org/maven2/"
  49. }
  50.  
  51. maven {
  52. name "Spigot"
  53. url "https://hub.spigotmc.org/nexus/content/repositories/snapshots/"
  54.  
  55. }
  56.  
  57. maven {
  58. url "https://repo.mallmc.info/repository/MallMC/"
  59. credentials {
  60. username "${nexusUsername}"
  61. password "${nexusPassword}"
  62. }
  63. }
  64. }
  65.  
  66.  
  67.  
  68. dependencies {
  69. compile "info.mallmc.framework:Framework:${framework_version}"
  70. compile "org.spigotmc:spigot:${bukkit_version}"
  71. compile "org.mongodb.morphia:morphia:${mongo_verison}"
  72. }
  73. jar {
  74. configurations.shade.each { dep ->
  75. from(project.zipTree(dep)) {
  76. exclude 'META-INF', 'META-INF/**'
  77. }
  78. }
  79. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement