Advertisement
Guest User

Untitled

a guest
May 16th, 2019
666
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.72 KB | None | 0 0
  1. plugins {
  2. id 'fabric-loom' version '0.2.2-SNAPSHOT'
  3. id 'maven-publish'
  4. }
  5.  
  6. sourceCompatibility = 1.8
  7. targetCompatibility = 1.8
  8.  
  9. group = "abused_master.refinedmachinery"
  10. archivesBaseName = "RefinedMachinery"
  11. version = "${mod_version}"
  12.  
  13. minecraft {
  14. }
  15.  
  16. repositories {
  17. jcenter()
  18. maven { url = "https://jitpack.io/" }
  19. maven { url = "https://oss.sonatype.org/content/repositories/releases/" }
  20. maven { url = "http://maven.abusedmaster.xyz/" }
  21. }
  22.  
  23. dependencies {
  24. minecraft "com.mojang:minecraft:${mc_version}"
  25. mappings "net.fabricmc:yarn:${yarn_mappings}"
  26. modCompile "net.fabricmc:fabric-loader:${loader_version}"
  27. modCompile "net.fabricmc:fabric:${fabric_version}"
  28.  
  29. modCompile "abused_master.abusedlib:AbusedLib:${abusedlib_version}"
  30. modCompile "com.github.NerdHubMC:Cardinal-Energy:${cardinal_version}"
  31. modCompile "com.github.NerdHubMC:Cardinal-Components-API:${cardinal_components}"
  32. include "com.github.NerdHubMC:Cardinal-Components-API:${cardinal_components}"
  33. compileOnly "com.google.code.findbugs:jsr305:${findbugs_version}"
  34. }
  35.  
  36. jar {
  37. from "LICENSE.md"
  38. manifest.mainAttributes(
  39. "Implementation-Title": project.name,
  40. "Implementation-Version": project.version,
  41. "Maven-Artifact": "${project.group}:${project.archivesBaseName}:${project.version}".toLowerCase(Locale.ROOT),
  42. "Built-On-Minecraft": "${mc_version}",
  43. "Built-On-Java": "${System.getProperty("java.vm.version")} (${System.getProperty("java.vm.vendor")})"
  44. )
  45. }
  46.  
  47. task sourcesJar(type: Jar, dependsOn: classes) {
  48. from sourceSets.main.allSource
  49. classifier = 'sources'
  50. }
  51.  
  52. artifacts {
  53. archives sourcesJar
  54. }
  55.  
  56. publishing {
  57. publications {
  58. mavenJava(MavenPublication) {
  59. artifact jar
  60. artifact sourcesJar
  61. pom {
  62. name = "Refined-Machinery"
  63. url = "https://github.com/NerdHubMC/Refined-Machinery"
  64. licenses {
  65. license {
  66. name = "MIT License"
  67. url = "https://github.com/NerdHubMC/Refined-Machinery/blob/master/LICENSE.md"
  68. }
  69. }
  70. scm {
  71. url = "https://github.com/NerdHubMC/Refined-Machinery"
  72. connection = "scm:git:git://github.com/NerdHubMC/Refined-Machinery.git"
  73. developerConnection = "scm:git:git@github.com:NerdHubMC/Refined-Machinery.git"
  74. }
  75. issueManagement {
  76. system = "github"
  77. url = "https://github.com/NerdHubMC/Refined-Machinery/issues"
  78. }
  79. }
  80. }
  81. }
  82.  
  83. repositories {
  84. if (project.hasProperty("maven_user") && project.hasProperty("maven_pass")) {
  85. maven {
  86. name = "Abused's Maven"
  87. url = findProperty("maven_url")
  88. credentials {
  89. username = findProperty("maven_user")
  90. password = findProperty("maven_pass")
  91. }
  92. authentication {
  93. basic(BasicAuthentication)
  94. }
  95. }
  96. }
  97. }
  98. }
  99. tasks.publish.dependsOn build
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement