Advertisement
Guest User

Untitled

a guest
Oct 28th, 2015
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.93 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.0-SNAPSHOT'
  13. }
  14. }
  15. apply plugin: 'net.minecraftforge.gradle.forge'
  16. */
  17.  
  18. // for people who want stable
  19. plugins {
  20. id "net.minecraftforge.gradle.forge" version "2.0.2"
  21. }
  22. apply plugin: 'scala'
  23. version = "1.0"
  24. group= "com.yourname.modid" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
  25. archivesBaseName = "modid"
  26.  
  27. minecraft {
  28. version = "1.8-11.14.1.1341"
  29. runDir = "eclipse"
  30.  
  31. // the mappings can be changed at any time, and must be in the following format.
  32. // snapshot_YYYYMMDD snapshot are built nightly.
  33. // stable_# stables are built at the discretion of the MCP team.
  34. // Use non-default mappings at your own risk. they may not allways work.
  35. // simply re-run your setup task after changing the mappings to update your workspace.
  36. mappings = "snapshot_20141130"
  37. // makeObfSourceJar = false // an Srg named sources jar is made by default. uncomment this to disable.
  38. }
  39.  
  40. dependencies {
  41.  
  42. compile fileTree(dir: 'lib', include: '*.jar')
  43. }
  44.  
  45. processResources
  46. {
  47. // this will ensure that this task is redone when the versions change.
  48. inputs.property "version", project.version
  49. inputs.property "mcversion", project.minecraft.version
  50.  
  51. // replace stuff in mcmod.info, nothing else
  52. from(sourceSets.main.resources.srcDirs) {
  53. include 'mcmod.info'
  54.  
  55. // replace version and mcversion
  56. expand 'version':project.version, 'mcversion':project.minecraft.version
  57. }
  58.  
  59. // copy everything else, thats not the mcmod.info
  60. from(sourceSets.main.resources.srcDirs) {
  61. exclude 'mcmod.info'
  62. }
  63. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement