Factorization's lag detection tool, now a separate mod!
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

build.gradle 3.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. buildscript {
  2. repositories {
  3. jcenter()
  4. maven { url = "http://files.minecraftforge.net/maven" }
  5. }
  6. dependencies {
  7. classpath 'net.minecraftforge.gradle:ForgeGradle:2.3-SNAPSHOT'
  8. }
  9. }
  10. apply plugin: 'net.minecraftforge.gradle.forge'
  11. version = "0.1.0"
  12. group= "pl.asie.lagssie" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
  13. archivesBaseName = "Lagssie"
  14. sourceCompatibility = targetCompatibility = "1.8" // Need this here so eclipse task generates correctly.
  15. compileJava {
  16. sourceCompatibility = targetCompatibility = "1.8"
  17. }
  18. minecraft {
  19. version = "1.12-14.21.0.2321"
  20. runDir = "run"
  21. // the mappings can be changed at any time, and must be in the following format.
  22. // snapshot_YYYYMMDD snapshot are built nightly.
  23. // stable_# stables are built at the discretion of the MCP team.
  24. // Use non-default mappings at your own risk. they may not allways work.
  25. // simply re-run your setup task after changing the mappings to update your workspace.
  26. mappings = "snapshot_20170610"
  27. // makeObfSourceJar = false // an Srg named sources jar is made by default. uncomment this to disable.
  28. replace '@VERSION@', project.version
  29. }
  30. dependencies {
  31. // you may put jars on which you depend on in ./libs
  32. // or you may define them like so..
  33. //compile "some.group:artifact:version:classifier"
  34. //compile "some.group:artifact:version"
  35. // real examples
  36. //compile 'com.mod-buildcraft:buildcraft:6.0.8:dev' // adds buildcraft to the dev env
  37. //compile 'com.googlecode.efficient-java-matrix-library:ejml:0.24' // adds ejml to the dev env
  38. // the 'provided' configuration is for optional dependencies that exist at compile-time but might not at runtime.
  39. //provided 'com.mod-buildcraft:buildcraft:6.0.8:dev'
  40. // the deobf configurations: 'deobfCompile' and 'deobfProvided' are the same as the normal compile and provided,
  41. // except that these dependencies get remapped to your current MCP mappings
  42. //deobfCompile 'com.mod-buildcraft:buildcraft:6.0.8:dev'
  43. //deobfProvided 'com.mod-buildcraft:buildcraft:6.0.8:dev'
  44. // for more info...
  45. // http://www.gradle.org/docs/current/userguide/artifact_dependencies_tutorial.html
  46. // http://www.gradle.org/docs/current/userguide/dependency_management.html
  47. }
  48. processResources
  49. {
  50. // this will ensure that this task is redone when the versions change.
  51. inputs.property "version", project.version
  52. inputs.property "mcversion", project.minecraft.version
  53. // replace stuff in mcmod.info, nothing else
  54. from(sourceSets.main.resources.srcDirs) {
  55. include 'mcmod.info'
  56. // replace version and mcversion
  57. expand 'version':project.version, 'mcversion':project.minecraft.version
  58. }
  59. // copy everything else, thats not the mcmod.info
  60. from(sourceSets.main.resources.srcDirs) {
  61. exclude 'mcmod.info'
  62. }
  63. }