Run Minetest mods in Minecraft!
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 2.1KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. buildscript {
  2. repositories {
  3. jcenter()
  4. maven { url = "http://files.minecraftforge.net/maven" }
  5. maven { url "https://plugins.gradle.org/m2/" }
  6. }
  7. dependencies {
  8. classpath 'net.minecraftforge.gradle:ForgeGradle:2.3-SNAPSHOT'
  9. classpath "gradle.plugin.net.minecrell:licenser:0.3"
  10. }
  11. }
  12. apply plugin: 'net.minecraftforge.gradle.forge'
  13. apply plugin: 'net.minecrell.licenser'
  14. version = "0.1.0"
  15. group = "pl.asie.minetestbridge" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
  16. archivesBaseName = "MinetestBridge"
  17. sourceCompatibility = targetCompatibility = '1.8' // Need this here so eclipse task generates correctly.
  18. compileJava {
  19. sourceCompatibility = targetCompatibility = '1.8'
  20. }
  21. minecraft {
  22. version = "1.12.2-14.23.5.2772"
  23. runDir = "run"
  24. mappings = "snapshot_20180814"
  25. makeObfSourceJar = false
  26. replace "\${version}", project.version
  27. replace "\${mcversion}", version
  28. }
  29. repositories {
  30. ivy {
  31. name 'asie dependency mirror'
  32. artifactPattern "http://asie.pl/javadeps/[module]-[revision](-[classifier]).[ext]"
  33. }
  34. }
  35. license {
  36. sourceSets = [project.sourceSets.main]
  37. header = project.file("docs/licenses/LICENSE")
  38. ignoreFailures = true
  39. exclude '**/*.lang'
  40. exclude '**/*.info'
  41. exclude '**/*.mcmeta'
  42. }
  43. dependencies {
  44. deobfCompile name: "Charset", version: "Lib-0.5.0.223"
  45. compile group: 'org.luaj', name: 'luaj-jse', version: '2.0.3'
  46. }
  47. processResources {
  48. // this will ensure that this task is redone when the versions change.
  49. inputs.property "version", project.version
  50. inputs.property "mcversion", project.minecraft.version
  51. // replace stuff in mcmod.info, nothing else
  52. from(sourceSets.main.resources.srcDirs) {
  53. include 'mcmod.info'
  54. // replace version and mcversion
  55. expand 'version':project.version, 'mcversion':project.minecraft.version
  56. }
  57. // copy everything else except the mcmod.info
  58. from(sourceSets.main.resources.srcDirs) {
  59. exclude 'mcmod.info'
  60. }
  61. }