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 2.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. buildscript {
  2. repositories {
  3. jcenter()
  4. maven {
  5. name = "forge"
  6. url = "http://files.minecraftforge.net/maven"
  7. }
  8. }
  9. dependencies {
  10. classpath 'net.minecraftforge.gradle:ForgeGradle:2.2-SNAPSHOT'
  11. classpath 'com.github.jengelman.gradle.plugins:shadow:1.2.3'
  12. }
  13. }
  14. apply plugin: 'net.minecraftforge.gradle.forge'
  15. apply plugin: 'com.github.johnrengelman.shadow'
  16. sourceCompatibility = JavaVersion.VERSION_1_8
  17. targetCompatibility = JavaVersion.VERSION_1_8
  18. version = "0.3.0"
  19. group = "pl.asie.charset"
  20. archivesBaseName = "Charset"
  21. minecraft {
  22. version = "1.9.4-12.17.0.1909-1.9.4"
  23. runDir = "run"
  24. useDepAts = true
  25. makeObfSourceJar = false
  26. mappings = "snapshot_20160520"
  27. replace '@VERSION@', project.version
  28. replace '@MC_VERSION@', version
  29. }
  30. repositories {
  31. maven { url "http://maven.amadornes.com/" }
  32. maven {
  33. name 'DVS1 Maven FS'
  34. url 'http://dvs1.progwml6.com/files/maven'
  35. }
  36. ivy {
  37. name 'asie dependency mirror'
  38. artifactPattern "http://asie.pl/javadeps/[module]-[revision](-[classifier]).[ext]"
  39. }
  40. }
  41. configurations {
  42. shadow
  43. compile.extendsFrom shadow
  44. }
  45. dependencies {
  46. deobfCompile "MCMultiPart:MCMultiPart-experimental:1.2.0_70:universal"
  47. deobfCompile "mezz.jei:jei_1.9.4:3.4.0.202"
  48. shadow name: "libresample4j", version: "bc0a030"
  49. // shadow name: "JTraits", version: "18c8227"
  50. }
  51. sourceSets {
  52. main {
  53. resources {
  54. srcDirs += 'docs'
  55. srcDirs += 'lang'
  56. }
  57. }
  58. }
  59. processResources {
  60. // this will ensure that this task is redone when the versions change.
  61. inputs.property "version", project.version
  62. inputs.property "mcversion", project.minecraft.version
  63. // replace stuff in mcmod.info, nothing else
  64. from(sourceSets.main.resources.srcDirs) {
  65. include 'mcmod.info'
  66. // replace version and mcversion
  67. expand 'version':project.version, 'mcversion':project.minecraft.version
  68. }
  69. // copy everything else, thats not the mcmod.info
  70. from(sourceSets.main.resources.srcDirs) {
  71. exclude 'mcmod.info'
  72. }
  73. }
  74. jar.dependsOn shadowJar
  75. jar.enabled = false
  76. shadowJar {
  77. archiveName = tasks.jar.archiveName
  78. configurations = [project.configurations.shadow]
  79. relocate 'com.amadornes.jtraits', 'pl.asie.charset.lib.jtraits'
  80. relocate 'com.laszlosystems.libresample4j', 'pl.asie.charset.audio.libresample4j'
  81. }
  82. reobfJar {
  83. setJar(tasks.shadowJar.archivePath)
  84. }
  85. reobfJar.dependsOn shadowJar
  86. task deobfJar(type: Jar) {
  87. from(sourceSets.main.output) {
  88. classifier = "deobf"
  89. }
  90. }
  91. artifacts {
  92. archives deobfJar
  93. }