build.gradle 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. buildscript {
  2. repositories {
  3. jcenter()
  4. maven { url = "http://files.minecraftforge.net/maven" }
  5. }
  6. dependencies {
  7. classpath 'net.minecraftforge.gradle:ForgeGradle:2.3-SNAPSHOT'
  8. }
  9. }
  10. apply plugin: 'net.minecraftforge.gradle.forge'
  11. //Only edit below this line, the above code adds and enables the necessary things for Forge to be setup.
  12. version = "V0.0.9pre-MC1.12.2"
  13. group = "cn.mcmod.sakura" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
  14. archivesBaseName = "Sakura"
  15. sourceCompatibility = targetCompatibility = '1.8' // Need this here so eclipse task generates correctly.
  16. compileJava {
  17. sourceCompatibility = targetCompatibility = '1.8'
  18. }
  19. minecraft {
  20. version = "1.12.2-14.23.5.2768"
  21. runDir = "run"
  22. mappings = "snapshot_20171003"
  23. replace "@version@", project.version
  24. }
  25. repositories {
  26. maven {
  27. // CraftTweaker2
  28. url = "http://maven.blamejared.com"
  29. }
  30. maven {
  31. name = "CoFH Maven"
  32. url = "http://maven.covers1624.net"
  33. }
  34. maven {
  35. name = "Chickenbones maven"
  36. url = "http://chickenbones.net/maven/"
  37. }
  38. maven {
  39. // location of the maven that hosts JEI files
  40. name = "Progwml6 maven"
  41. url = "http://dvs1.progwml6.com/files/maven"
  42. }
  43. maven {
  44. // location of a maven mirror for JEI files, as a fallback
  45. name = "ModMaven"
  46. url = "modmaven.k-4u.nl"
  47. }
  48. maven {
  49. name = "CurseForge"
  50. url = "https://minecraft.curseforge.com/api/maven/"
  51. }
  52. maven {
  53. url = "http://tehnut.info/maven"
  54. }
  55. }
  56. dependencies {
  57. compile "vazkii.patchouli:Patchouli:1.0-10.51"
  58. // compile against the JEI API but do not include it at runtime
  59. deobfProvided "mezz.jei:jei_1.12.2:4.14.3.238:api"
  60. // at runtime, use the full JEI jar
  61. runtime "mezz.jei:jei_1.12.2:4.14.3.238"
  62. deobfCompile "jei-integration:jeiintegration_1.12.2:1.5.1.36"
  63. deobfCompile "slimeknights.mantle:Mantle:1.12-1.3.3.55"
  64. deobfCompile "slimeknights:TConstruct:1.12.2-2.12.0.157"
  65. deobfCompile("CraftTweaker2:CraftTweaker2-MC1120-Main:1.12-4.1.19.547") {
  66. exclude group: 'org.ow2.asm'
  67. }
  68. deobfCompile "CraftTweaker2:CraftTweaker2-API:4.1.19.547"
  69. deobfCompile "CraftTweaker2:ZenScript:4.1.19.547"
  70. deobfCompile "mcp.mobius.waila:Hwyla:1.8.26-B41_1.12.2"
  71. }
  72. processResources {
  73. // this will ensure that this task is redone when the versions change.
  74. inputs.property "version", project.version
  75. inputs.property "mcversion", project.minecraft.version
  76. // replace stuff in mcmod.info, nothing else
  77. from(sourceSets.main.resources.srcDirs) {
  78. include 'mcmod.info'
  79. // replace version and mcversion
  80. expand 'version':project.version, 'mcversion':project.minecraft.version
  81. }
  82. // copy everything else except the mcmod.info
  83. from(sourceSets.main.resources.srcDirs) {
  84. exclude 'mcmod.info'
  85. }
  86. }