Quark compatibility for mods
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

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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. }
  10. }
  11. apply plugin: 'net.minecraftforge.gradle.forge'
  12. version = "1.0.0"
  13. group = "pl.asie.ionchests"
  14. archivesBaseName = "IonChests"
  15. sourceCompatibility = targetCompatibility = '1.8'
  16. compileJava {
  17. sourceCompatibility = targetCompatibility = '1.8'
  18. }
  19. if (System.getenv("BUILD_NUMBER") != null)
  20. version += ".${System.getenv("BUILD_NUMBER")}"
  21. configurations {
  22. deploy
  23. }
  24. dependencies {
  25. deploy 'org.apache.maven.wagon:wagon-ssh:2.10'
  26. }
  27. minecraft {
  28. version = "1.12.2-14.23.4.2739"
  29. runDir = "run"
  30. mappings = "snapshot_20180723"
  31. replace "\${version}", project.version
  32. replace "\${mcversion}", version
  33. }
  34. repositories {
  35. }
  36. sourceSets {
  37. main {
  38. resources {
  39. srcDirs += 'docs'
  40. }
  41. }
  42. }
  43. dependencies {
  44. }
  45. processResources {
  46. inputs.property "version", project.version
  47. inputs.property "mcversion", project.minecraft.version
  48. from(sourceSets.main.resources.srcDirs) {
  49. include 'mcmod.info'
  50. expand 'version':project.version, 'mcversion':project.minecraft.version
  51. }
  52. from(sourceSets.main.resources.srcDirs) {
  53. exclude 'mcmod.info'
  54. }
  55. }
  56. jar {
  57. manifest.attributes "Manifest-Version": "1.0"
  58. manifest.attributes "FMLCorePlugin": "pl.asie.ionchests.IonChests"
  59. }
  60. if (file('private.gradle').exists()) {
  61. apply from: 'private.gradle'
  62. }
  63. task signJar(type: SignJar, dependsOn: reobfJar) {
  64. onlyIf {
  65. project.hasProperty('keyStore')
  66. }
  67. keyStore = project.keyStore
  68. alias = project.keyStoreAlias
  69. storePass = project.keyStorePass
  70. keyPass = project.keyStoreKeyPass
  71. inputFile = jar.archivePath
  72. outputFile = jar.archivePath
  73. }
  74. build.dependsOn(signJar)