Repository for GregTech 6
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

build.gradle 4.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  1. buildscript {
  2. repositories {
  3. mavenCentral()
  4. maven {
  5. name = "forge"
  6. url = "http://files.minecraftforge.net/maven"
  7. }
  8. maven {
  9. name = "sonatype"
  10. url = "https://oss.sonatype.org/content/repositories/snapshots/"
  11. }
  12. }
  13. dependencies {
  14. classpath 'net.minecraftforge.gradle:ForgeGradle:1.2-SNAPSHOT'
  15. }
  16. }
  17. apply plugin: 'eclipse'
  18. eclipse {
  19. classpath {
  20. downloadJavadoc = true
  21. downloadSources = true
  22. }
  23. }
  24. apply plugin: 'idea'
  25. idea{
  26. module {
  27. downloadJavadoc = true
  28. downloadSources = true
  29. }
  30. }
  31. repositories {
  32. maven {
  33. name = "gt"
  34. url = "https://gregtech.overminddl1.com/"
  35. }
  36. maven {
  37. name = "forge"
  38. url = "https://files.minecraftforge.net/maven"
  39. }
  40. //// No official maven'y storage for:
  41. //// - Baubles
  42. //// - MicdoodleCore
  43. //// - GalacticraftCore
  44. //// - Galacticraft-Planets
  45. //// - Thaumcraft
  46. //// - EnviroMine
  47. //// - Botania
  48. //// - Railcraft
  49. //// - twilightforest
  50. //// - appliedenergistics2
  51. //// - CoFHLib
  52. //// - ComputerCraft
  53. //// - RTG
  54. //// - OpenBlocks
  55. //// - IC2Classic
  56. //// Main storage for forestry_1.7.10
  57. //maven {
  58. // name = "ic2"
  59. // url = "http://maven.ic2.player.to/"
  60. //}
  61. //// Main storage for buildcraft
  62. //ivy {
  63. // name "BuildCraft"
  64. // artifactPattern "http://www.mod-buildcraft.com/releases/BuildCraft/[revision]/[module]-[revision](-[classifier]).[ext]"
  65. //}
  66. //// Main storage for CodeChickenCore, NotEnoughItems
  67. //// CodeChickenLib is in the Forge maven
  68. //maven {
  69. // name = "chickenbones"
  70. // url = "http://chickenbones.net/maven/"
  71. //}
  72. //// Main storage for AppleCore
  73. //maven {
  74. // name = "Apple"
  75. // url "http://www.ryanliptak.com/maven/"
  76. //}
  77. //// Main storage for OpenComputers
  78. //maven {
  79. // name = "OC repo"
  80. // url = "http://maven.cil.li/"
  81. //}
  82. }
  83. apply plugin: 'forge'
  84. sourceCompatibility = 1.7
  85. targetCompatibility = 1.7
  86. compileJava.options.bootClasspath = org.gradle.internal.jvm.Jvm.current().getJre().getHomeDir().toString() +"/lib/rt.jar"
  87. group= "com.gregoriust.gregtech"
  88. archivesBaseName = "gregtech_1.7.10"
  89. version = "6.09.00"
  90. minecraft {
  91. version = "1.7.10-10.13.4.1614-1.7.10"
  92. runDir = "assets"
  93. }
  94. dependencies {
  95. //compile fileTree(dir: 'libs', include: '*.jar')
  96. compile "net.sengir.forestry:forestry_1.7.10:4.2.16.64:dev"
  97. compile "com.mod-buildcraft:buildcraft:7.1.23:dev"
  98. compile "com.azanor.baubles:Baubles:1.7.10-1.0.1.10:deobf"
  99. compile "micdoodle8.mods:MicdoodleCore:1.7-3.0.12.504:Dev"
  100. compile "micdoodle8.mods:GalacticraftCore:1.7-3.0.12.504:Dev"
  101. compile "micdoodle8.mods:Galacticraft-Planets:1.7-3.0.12.504:Dev"
  102. compile "codechicken:CodeChickenLib:1.7.10-1.1.3.140:dev"
  103. compile "codechicken:CodeChickenCore:1.7.10-1.0.7.47:dev"
  104. compile "codechicken:NotEnoughItems:1.7.10-1.0.5.120:dev"
  105. compile "thaumcraft:Thaumcraft:1.7.10-4.2.3.5:dev"
  106. compile "enviromine:EnviroMine:1.3.124:deobf"
  107. compile "vazkii.botania:Botania:r1.8-250:deobf"
  108. compile "mods.railcraft:Railcraft_1.7.10:9.12.3.0:dev"
  109. compile "twilightforest:twilightforest:1.7.10-2.3.8dev:dev"
  110. compile "appeng:appliedenergistics2:rv3-beta-6:dev"
  111. compile "cofh:CoFHLib:1.7.10R3.0.3:dev"
  112. compile "applecore:AppleCore:1.7.10-3.1.1:deobf"
  113. compile "li.cil.oc:OpenComputers:MC1.7.10-1.7.2.1204:dev"
  114. // This ComputerCraft thing is *SUCH* a hack, but ComputerCraft is... not
  115. // right... This only works because of CodeChickenCore Magic being included
  116. // up above...
  117. compile "dan200.computercraft:ComputerCraft:1.75"
  118. compile "openblocks:OpenBlocks:1.7.10-1.6-1.7.10:deobf"
  119. compile "openmods:OpenModsLib:1.7.10-0.10:deobf"
  120. compile "ic2:IC2Classic:1.2.1.8:dev"
  121. }
  122. processResources {
  123. from(sourceSets.main.resources.srcDirs) {
  124. include 'mcmod.info'
  125. expand 'version':project.version, 'mcversion':project.minecraft.version
  126. }
  127. from(sourceSets.main.resources.srcDirs) {
  128. exclude 'mcmod.info'
  129. }
  130. }
  131. task wrapper(type: Wrapper) {
  132. gradleVersion = '2.13'
  133. }
  134. task sourceJar(type: Jar) {
  135. manifest {}
  136. classifier = 'sources'
  137. from sourceSets.main.allSource
  138. include 'gregapi/**'
  139. }
  140. task devJar(type: Jar) {
  141. manifest {}
  142. classifier = 'dev'
  143. from sourceSets.main.output
  144. }
  145. task coreJar(type: Jar) {
  146. dependsOn jar
  147. manifest {}
  148. classifier = 'core'
  149. from sourceSets.main.output
  150. exclude('gregtech/**')
  151. }
  152. reobf {
  153. reobf(coreJar) {
  154. spec -> spec.classpath = sourceSets.main.compileClasspath
  155. }
  156. }
  157. artifacts {
  158. archives devJar, sourceJar, coreJar
  159. }
  160. if (!hasProperty("mavenUsername")) {
  161. ext.mavenUsername=""
  162. }
  163. if (!hasProperty("mavenPassword")) {
  164. ext.mavenPassword=""
  165. }
  166. uploadArchives {
  167. repositories {
  168. mavenDeployer {
  169. repository(url: "http://maven.gregtech.overminddl1.com/upload") {
  170. authentication(userName: mavenUsername, password: mavenPassword)
  171. }
  172. pom*.whenConfigured {
  173. pom -> pom.dependencies.clear()
  174. }
  175. }
  176. }
  177. }