Advertisement
Guest User

Untitled

a guest
Oct 28th, 2015
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.80 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.1532"
  26. //version = "1.8-11.14.1.1341"
  27. runDir = "eclipse"
  28.  
  29. // the mappings can be changed at any time, and must be in the following format.
  30. // snapshot_YYYYMMDD snapshot are built nightly.
  31. // stable_# stables are built at the discretion of the MCP team.
  32. // Use non-default mappings at your own risk. they may not allways work.
  33. // simply re-run your setup task after changing the mappings to update your workspace.
  34. mappings = "snapshot_20141130"
  35. }
  36.  
  37. dependencies {
  38.  
  39. compile fileTree(dir: 'lib', include: '*.jar')
  40.  
  41. }
  42.  
  43. processResources
  44. {
  45. // this will ensure that this task is redone when the versions change.
  46. inputs.property "version", project.version
  47. inputs.property "mcversion", project.minecraft.version
  48.  
  49. // replace stuff in mcmod.info, nothing else
  50. from(sourceSets.main.resources.srcDirs) {
  51. include 'mcmod.info'
  52.  
  53. // replace version and mcversion
  54. expand 'version':project.version, 'mcversion':project.minecraft.version
  55. }
  56.  
  57. // copy everything else, thats not the mcmod.info
  58. from(sourceSets.main.resources.srcDirs) {
  59. exclude 'mcmod.info'
  60. }
  61. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement