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.0KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  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.3.1"
  15. group = "pl.asie.redstoneminus"
  16. archivesBaseName = "RedstoneMinusRedstone"
  17. sourceCompatibility = targetCompatibility = '1.8'
  18. compileJava {
  19. sourceCompatibility = targetCompatibility = '1.8'
  20. }
  21. if (System.getenv("BUILD_NUMBER") != null)
  22. version += ".${System.getenv("BUILD_NUMBER")}"
  23. configurations {
  24. deploy
  25. }
  26. dependencies {
  27. deploy 'org.apache.maven.wagon:wagon-ssh:2.10'
  28. }
  29. minecraft {
  30. version = "1.12.2-14.23.5.2824"
  31. runDir = "run"
  32. mappings = "stable_39"
  33. replace "\${version}", project.version
  34. replace "\${mcversion}", version
  35. }
  36. repositories {
  37. }
  38. sourceSets {
  39. main {
  40. resources {
  41. srcDirs += 'docs'
  42. }
  43. }
  44. }
  45. license {
  46. sourceSets = [project.sourceSets.main]
  47. header = project.file("docs/licenses/LICENSE")
  48. ignoreFailures = true
  49. exclude '**/*.lang'
  50. exclude '**/*.info'
  51. exclude '**/*.mcmeta'
  52. }
  53. dependencies {
  54. }
  55. processResources {
  56. inputs.property "version", project.version
  57. inputs.property "mcversion", project.minecraft.version
  58. from(sourceSets.main.resources.srcDirs) {
  59. include 'mcmod.info'
  60. expand 'version':project.version, 'mcversion':project.minecraft.version
  61. }
  62. from(sourceSets.main.resources.srcDirs) {
  63. exclude 'mcmod.info'
  64. }
  65. }
  66. jar {
  67. manifest.attributes "Manifest-Version": "1.0"
  68. manifest.attributes "FMLCorePluginContainsFMLMod": "true"
  69. manifest.attributes "FMLCorePlugin": "pl.asie.redstoneminus.core.RedstoneMinusCore"
  70. }
  71. if (file('private.gradle').exists()) {
  72. apply from: 'private.gradle'
  73. }