CJMinecraft

build.gradle

Oct 3rd, 2016
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.46 KB | None | 0 0
  1.  
  2. // For those who want the bleeding edge
  3. buildscript {
  4. repositories {
  5. jcenter()
  6. maven {
  7. name = "forge"
  8. url = "http://files.minecraftforge.net/maven"
  9. }
  10. }
  11. dependencies {
  12. classpath 'net.minecraftforge.gradle:ForgeGradle:2.2-SNAPSHOT'
  13. }
  14. }
  15.  
  16. repositories {
  17. mavenCentral()
  18. maven { url = "http://mobiusstrip.eu/maven" }
  19. maven { url = "http://files.minecraftforge.net/maven" }
  20. maven { url "http://dvs1.progwml6.com/files/maven" }
  21. maven { url "http://maven.rubbix.net" }
  22. }
  23.  
  24. apply plugin: 'net.minecraftforge.gradle.forge'
  25.  
  26. /*
  27. // for people who want stable - not yet functional for MC 1.8.8 - we require the forgegradle 2.1 snapshot
  28. plugins {
  29. id "net.minecraftforge.gradle.forge" version "2.0.2"
  30. }
  31. */
  32. group= "cjminecraft.industrialtech" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
  33. archivesBaseName = "modid"
  34.  
  35. minecraft {
  36. version = "1.10.2-12.18.1.2049"
  37. runDir = "run"
  38.  
  39. // the mappings can be changed at any time, and must be in the following format.
  40. // snapshot_YYYYMMDD snapshot are built nightly.
  41. // stable_# stables are built at the discretion of the MCP team.
  42. // Use non-default mappings at your own risk. they may not allways work.
  43. // simply re-run your setup task after changing the mappings to update your workspace.
  44. mappings = "snapshot_20160518"
  45. // makeObfSourceJar = false // an Srg named sources jar is made by default. uncomment this to disable.
  46. }
  47.  
  48. dependencies {
  49. // you may put jars on which you depend on in ./libs
  50. // or you may define them like so..
  51. //compile "some.group:artifact:version:classifier"
  52. //compile "some.group:artifact:version"
  53.  
  54. // real examples
  55. //compile 'com.mod-buildcraft:buildcraft:6.0.8:dev' // adds buildcraft to the dev env
  56. //compile 'com.googlecode.efficient-java-matrix-library:ejml:0.24' // adds ejml to the dev env
  57.  
  58. // the 'provided' configuration is for optional dependencies that exist at compile-time but might not at runtime.
  59. //provided 'com.mod-buildcraft:buildcraft:6.0.8:dev'
  60.  
  61. // the deobf configurations: 'deobfCompile' and 'deobfProvided' are the same as the normal compile and provided,
  62. // except that these dependencies get remapped to your current MCP mappings
  63. //deobfCompile 'com.mod-buildcraft:buildcraft:6.0.8:dev'
  64. //deobfProvided 'com.mod-buildcraft:buildcraft:6.0.8:dev'
  65.  
  66. // for more info...
  67. // http://www.gradle.org/docs/current/userguide/artifact_dependencies_tutorial.html
  68. // http://www.gradle.org/docs/current/userguide/dependency_management.html
  69.  
  70. deobfCompile "mcp.mobius.waila:Waila:1.7.0-B3_1.9.4:dev"
  71. deobfCompile "mezz.jei:jei_1.10:3.7.1.219:api"
  72. runtime "mezz.jei:jei_1.10:3.7.1.219"
  73. compile "net.darkhax.tesla:Tesla:1.10.2-1.2.1.49"
  74.  
  75. }
  76.  
  77. processResources
  78. {
  79. // this will ensure that this task is redone when the versions change.
  80. inputs.property "version", project.version
  81. inputs.property "mcversion", project.minecraft.version
  82.  
  83. // replace stuff in mcmod.info, nothing else
  84. from(sourceSets.main.resources.srcDirs) {
  85. include 'mcmod.info'
  86.  
  87. // replace version and mcversion
  88. expand 'version':project.version, 'mcversion':project.minecraft.version
  89. }
  90.  
  91. // copy everything else, thats not the mcmod.info
  92. from(sourceSets.main.resources.srcDirs) {
  93. exclude 'mcmod.info'
  94. }
  95. }
Advertisement
Add Comment
Please, Sign In to add comment