build.gradle 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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: 'forge'
  18. version = "2.3.8dev"
  19. group= "twilightforest" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
  20. archivesBaseName = "twilightforest-1.7.10"
  21. minecraft {
  22. version = "1.7.10-10.13.4.1558-1.7.10"
  23. runDir = "eclipse"
  24. }
  25. dependencies {
  26. // you may put jars on which you depend on in ./libs
  27. // or you may define them like so..
  28. //compile "some.group:artifact:version:classifier"
  29. //compile "some.group:artifact:version"
  30. // real examples
  31. //compile 'com.mod-buildcraft:buildcraft:6.0.8:dev' // adds buildcraft to the dev env
  32. //compile 'com.googlecode.efficient-java-matrix-library:ejml:0.24' // adds ejml to the dev env
  33. // for more info...
  34. // http://www.gradle.org/docs/current/userguide/artifact_dependencies_tutorial.html
  35. // http://www.gradle.org/docs/current/userguide/dependency_management.html
  36. compile files('libs/Thaumcraft-deobf-1.7.10-4.2.3.5.jar')
  37. }
  38. processResources
  39. {
  40. // this will ensure that this task is redone when the versions change.
  41. inputs.property "version", project.version
  42. inputs.property "mcversion", project.minecraft.version
  43. // replace stuff in mcmod.info, nothing else
  44. from(sourceSets.main.resources.srcDirs) {
  45. include 'mcmod.info'
  46. // replace version and mcversion
  47. expand 'version':project.version, 'mcversion':project.minecraft.version
  48. }
  49. // copy everything else, thats not the mcmod.info
  50. from(sourceSets.main.resources.srcDirs) {
  51. exclude 'mcmod.info'
  52. }
  53. }