SergOmarov

gradle.build

Jan 10th, 2017
82
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. apply plugin: 'scala'
  18.  
  19. apply plugin: 'forge'
  20.  
  21. version = "1.0"
  22. group= "com.yourname.modid" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
  23. archivesBaseName = "modid"
  24.  
  25. minecraft {
  26. version = "1.7.10-10.13.4.1614-1.7.10"
  27. runDir = "eclipse"
  28. }
  29.  
  30. dependencies {
  31. compile files("eclipse/mods2/EnderCore-1.7.10-0.2.0.39_beta-dev.jar")
  32. compile files("eclipse/mods2/EnderIO-1.7.10-2.3.0.428_beta-dev.jar")
  33.  
  34. compile files("eclipse/mods/1.7.10/CodeChickenLib-1.7.10-1.1.3.138-dev.jar")
  35. compile files("eclipse/crash-reports/CodeChickenCore-1.7.10-1.0.7.47-dev.jar")
  36. compile files("eclipse/mods2/Draconic-Evolution-1.7.10-1.0.2h (1).jar")
  37. compile files("eclipse/mods2/extrautilities-1.2.12 (1).jar")
  38. compile files("eclipse/mods2/industrialcraft-2-2.2.827-experimental-dev.jar")
  39.  
  40. }
  41.  
  42. processResources
  43. {
  44. // this will ensure that this task is redone when the versions change.
  45. inputs.property "version", project.version
  46. inputs.property "mcversion", project.minecraft.version
  47.  
  48. // replace stuff in mcmod.info, nothing else
  49. from(sourceSets.main.resources.srcDirs) {
  50. include 'mcmod.info'
  51.  
  52. // replace version and mcversion
  53. expand 'version':project.version, 'mcversion':project.minecraft.version
  54. }
  55.  
  56. // copy everything else, thats not the mcmod.info
  57. from(sourceSets.main.resources.srcDirs) {
  58. exclude 'mcmod.info'
  59. }
  60. }
RAW Paste Data