The Charset Project for Minecraft.
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 6.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253
  1. buildscript {
  2. repositories {
  3. jcenter()
  4. maven {
  5. name = "forge"
  6. url = "http://files.minecraftforge.net/maven"
  7. }
  8. maven {
  9. url "https://plugins.gradle.org/m2/"
  10. }
  11. }
  12. dependencies {
  13. classpath 'net.minecraftforge.gradle:ForgeGradle:2.3-SNAPSHOT'
  14. classpath 'com.github.jengelman.gradle.plugins:shadow:2.0.4'
  15. classpath "gradle.plugin.net.minecrell:licenser:0.3"
  16. }
  17. }
  18. apply plugin: 'maven'
  19. apply plugin: 'net.minecraftforge.gradle.forge'
  20. apply plugin: 'com.github.johnrengelman.shadow'
  21. apply plugin: 'net.minecrell.licenser'
  22. sourceCompatibility = JavaVersion.VERSION_1_8
  23. targetCompatibility = JavaVersion.VERSION_1_8
  24. version = "0.5.4.4"
  25. group = "pl.asie.charset"
  26. archivesBaseName = "Charset"
  27. if (System.getenv("BUILD_NUMBER") != null)
  28. version += ".${System.getenv("BUILD_NUMBER")}"
  29. configurations {
  30. deploy
  31. }
  32. dependencies {
  33. deploy 'org.apache.maven.wagon:wagon-ssh:2.10'
  34. }
  35. minecraft {
  36. version = "1.12.2-14.23.4.2747"
  37. runDir = "run"
  38. useDepAts = true
  39. makeObfSourceJar = false
  40. mappings = "snapshot_20180722"
  41. replace '@VERSION@', project.version
  42. replace '@MC_VERSION@', version
  43. }
  44. repositories {
  45. mavenCentral()
  46. maven {
  47. url 'http://tehnut.info/maven/'
  48. }
  49. maven { url "http://maven.amadornes.com/" }
  50. maven {
  51. name 'DVS1 Maven FS'
  52. url 'http://dvs1.progwml6.com/files/maven'
  53. }
  54. maven {
  55. name 'Sonatype OSSRH (Snapshots)'
  56. url 'https://oss.sonatype.org/content/repositories/snapshots/'
  57. }
  58. maven {
  59. name "Mighty Pirates"
  60. url "http://maven.cil.li"
  61. }
  62. maven {
  63. name "Cyclops Repo"
  64. url "https://dl.bintray.com/cyclopsmc/dev/"
  65. }
  66. maven {
  67. url "http://repo.elytradev.com"
  68. }
  69. maven {
  70. name "BuildCraft"
  71. url = "https://mod-buildcraft.com/maven"
  72. }
  73. maven {
  74. url "http://maven.blamejared.com/"
  75. }
  76. maven {
  77. url "http://maven.k-4u.nl"
  78. }
  79. ivy {
  80. name 'asie dependency mirror'
  81. artifactPattern "http://asie.pl/javadeps/[module]-[revision](-[classifier]).[ext]"
  82. }
  83. ivy {
  84. name 'ibxm'
  85. artifactPattern "https://github.com/martincameron/micromod/raw/master/[module]-[revision].[ext]"
  86. }
  87. }
  88. license {
  89. sourceSets = [project.sourceSets.main]
  90. header = project.file("docs/licenses/LICENSE")
  91. ignoreFailures = true
  92. exclude '**/*.lang'
  93. exclude '**/*.info'
  94. exclude '**/*.mcmeta'
  95. matching('**/pl/asie/charset/api/**') {
  96. header = project.file("docs/licenses/LICENSE-API")
  97. }
  98. }
  99. configurations {
  100. shadow
  101. compile.extendsFrom shadow
  102. }
  103. dependencies {
  104. // shadows
  105. shadow name: "libresample4j", version: "bc0a030"
  106. // shadow name: "ibxm", version: "a73"
  107. // APIs
  108. deobfCompile ("appeng:appliedenergistics2:rv5-stable-11:api") {
  109. exclude module: "jei_1.12.2"
  110. }
  111. deobfCompile name: "Baubles", version: "1.12-1.5.2"
  112. deobfCompile "com.mod-buildcraft:buildcraft-api:7.99.16"
  113. deobfCompile name: "chiselsandbits", version: "14.20"
  114. deobfCompile "org.cyclops.commoncapabilities:CommonCapabilities:1.12.2-1.4.0-174"
  115. deobfCompile "CraftTweaker2:CraftTweaker2-MC1120-Main:1.12-4.1.6.457"
  116. deobfCompile "info.amerifrance.guideapi:Guide-API:1.12-2.1.4-57"
  117. deobfCompile "mcp.mobius.waila:Hwyla:1.8.23-B38_1.12:api"
  118. deobfCompile name: "infraredstone", version: "1.12.2-1.2.104-api"
  119. deobfCompile name: "InventoryTweaks", version: "1.63-api"
  120. deobfCompile "mezz.jei:jei_1.12.2:4.11.0.205"
  121. deobfCompile "MCMultiPart2:MCMultiPart-exp:2.5.1_66"
  122. deobfCompile "com.elytradev:mirage:2.0.3-rc3-SNAPSHOT"
  123. deobfCompile "li.cil.oc:OpenComputers:MC1.12-1.7.+:api"
  124. deobfCompile "com.elytradev:probedataproviderapi:MC1.12_ver1.1.1"
  125. deobfCompile name: "theoneprobe", version: "1.12-1.4.19-api"
  126. deobfCompile "li.cil.tis3d:TIS-3D:MC1.12-1.3.1.+:api"
  127. }
  128. sourceSets {
  129. main {
  130. resources {
  131. srcDirs += 'lang'
  132. srcDirs += 'docs'
  133. }
  134. }
  135. }
  136. processResources {
  137. // this will ensure that this task is redone when the versions change.
  138. inputs.property "version", project.version
  139. inputs.property "mcversion", project.minecraft.version
  140. // replace stuff in mcmod.info, nothing else
  141. from(sourceSets.main.resources.srcDirs) {
  142. include 'mcmod.info'
  143. // replace version and mcversion
  144. expand 'version':project.version, 'mcversion':project.minecraft.version
  145. }
  146. // copy everything else, thats not the mcmod.info
  147. from(sourceSets.main.resources.srcDirs) {
  148. exclude 'mcmod.info'
  149. }
  150. }
  151. jar.dependsOn shadowJar
  152. jar.enabled = false
  153. jar {
  154. classifier = "full"
  155. }
  156. task charsetJar(type: Jar) {
  157. baseName = "Charset"
  158. classifier = ""
  159. }
  160. shadowJar {
  161. classifier = "full"
  162. archiveName = tasks.jar.archiveName
  163. configurations = [project.configurations.shadow]
  164. relocate 'com.laszlosystems.libresample4j', 'pl.asie.charset.module.audio.storage.libresample4j'
  165. // relocate 'ibxm', 'pl.asie.charset.module.audio.storage.ibxm'
  166. }
  167. task shadowJarNonFull(type: com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar) {
  168. baseName = "Charset"
  169. classifier = ""
  170. archiveName = tasks.charsetJar.archiveName
  171. configurations = [project.configurations.shadow]
  172. relocate 'com.laszlosystems.libresample4j', 'pl.asie.charset.module.audio.storage.libresample4j'
  173. from(sourceSets.main.output) {
  174. include "META-INF/**"
  175. include "assets/charset/**"
  176. include "assets/simplelogic/**"
  177. include "licenses/**"
  178. include "pl/asie/charset/**"
  179. include "mcmod.info"
  180. include "pack.mcmeta"
  181. }
  182. }
  183. task simplelogicJar(type: Jar) {
  184. baseName = "SimpleLogic"
  185. classifier = ""
  186. from(sourceSets.main.output) {
  187. include "META-INF/MANIFEST.MF"
  188. include "licenses/**"
  189. include "pl/asie/simplelogic/**"
  190. include "pack.mcmeta"
  191. }
  192. }
  193. reobf {
  194. charsetJar {
  195. }
  196. simplelogicJar {
  197. classpath += sourceSets.main.output
  198. }
  199. }
  200. reobfJar {
  201. setJar(tasks.shadowJar.archivePath)
  202. }
  203. reobfCharsetJar {
  204. setJar(tasks.shadowJarNonFull.archivePath)
  205. }
  206. reobfJar.dependsOn shadowJar
  207. reobfCharsetJar.dependsOn shadowJarNonFull
  208. task apiJar(type: Jar) {
  209. classifier = "api"
  210. from(sourceSets.main.output) {
  211. include "pl/asie/charset/api/**"
  212. include "licenses/**"
  213. }
  214. }
  215. artifacts {
  216. archives apiJar, simplelogicJar
  217. }
  218. if (file('private.gradle').exists()) {
  219. apply from: 'private.gradle'
  220. }