Advertisement
Gamebuster

Build.gradle

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