Advertisement
Guest User

Untitled

a guest
Aug 19th, 2015
237
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.22 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. version = "1.0"
  21. group= "com.yourname.modid" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
  22. archivesBaseName = "modid"
  23.  
  24. minecraft {
  25. version = "1.8-11.14.3.1502"
  26. runDir = "eclipse"
  27.  
  28. // the mappings can be changed at any time, and must be in the following format.
  29. // snapshot_YYYYMMDD snapshot are built nightly.
  30. // stable_# stables are built at the discretion of the MCP team.
  31. // Use non-default mappings at your own risk. they may not allways work.
  32. // simply re-run your setup task after changing the mappings to update your workspace.
  33. mappings = "snapshot_nodoc_20150404"
  34. }
  35.  
  36. repositories {
  37. maven { // The repo from which to get waila
  38. name "Mobius Repo"
  39. url "http://mobiusstrip.eu/maven"
  40. }
  41. maven { // the repo from which to get NEI and stuff
  42. name 'CB Repo'
  43. url "http://chickenbones.net/maven/"
  44. }
  45. }
  46.  
  47. dependencies {
  48. // I dont have to specify NEI.. because gradle magic. aka: transitive dependency resolution
  49. compile "mcp.mobius.waila:Waila:1.6.0_B1_1.8.1:dev"
  50. }
  51.  
  52. processResources
  53. {
  54. // this will ensure that this task is redone when the versions change.
  55. inputs.property "version", project.version
  56. inputs.property "mcversion", project.minecraft.version
  57.  
  58. // replace stuff in mcmod.info, nothing else
  59. from(sourceSets.main.resources.srcDirs) {
  60. include 'mcmod.info'
  61.  
  62. // replace version and mcversion
  63. expand 'version':project.version, 'mcversion':project.minecraft.version
  64. }
  65.  
  66. // copy everything else, thats not the mcmod.info
  67. from(sourceSets.main.resources.srcDirs) {
  68. exclude 'mcmod.info'
  69. }
  70. }
  71. idea {
  72. module {
  73. inheritOutputDirs = true
  74.  
  75.  
  76. } }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement