Guest User

Untitled

a guest
Aug 31st, 2015
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.05 KB | None | 0 0
  1. /*buildscript {
  2. repositories {
  3. mavenCentral()
  4. maven {
  5. name = "forge"
  6. url = "http://files.minecraftforge.net/maven"
  7. }
  8. maven {
  9. name = "sonatype"
  10. url = "https://oss.sonatype.org/content/repositories/snapshots/"
  11. }
  12. }
  13. dependencies {
  14. classpath 'net.minecraftforge.gradle:ForgeGradle:1.2-SNAPSHOT'
  15. }
  16. }
  17.  
  18. apply plugin: 'forge'
  19. */
  20. plugins {
  21. id "net.minecraftforge.gradle.forge" version "2.0.1"
  22. }
  23.  
  24. version = "2.0.0"
  25. group= "rcteam.rc2"
  26. archivesBaseName = "Rollercoaster2"
  27.  
  28. minecraft {
  29. version = "1.8-11.14.3.1506"
  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_20141130"
  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.  
  65. processResources
  66. {
  67. // this will ensure that this task is redone when the versions change.
  68. inputs.property "version", project.version
  69. inputs.property "mcversion", project.minecraft.version
  70.  
  71. // replace stuff in mcmod.info, nothing else
  72. from(sourceSets.main.resources.srcDirs) {
  73. include 'mcmod.info'
  74.  
  75. // replace version and mcversion
  76. expand 'version':project.version, 'mcversion':project.minecraft.version
  77. }
  78.  
  79. // copy everything else, thats not the mcmod.info
  80. from(sourceSets.main.resources.srcDirs) {
  81. exclude 'mcmod.info'
  82. }
  83. }
  84.  
  85. compileJava {
  86. sourceCompatibility = 1.8
  87. targetCompatibility = 1.8
  88. }
  89.  
  90. //idea.module.inheritOutputDirs = true
Advertisement
Add Comment
Please, Sign In to add comment