Advertisement
Guest User

Untitled

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