Coremod patches for enabling special Charset functionality.
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.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. buildscript {
  2. repositories {
  3. jcenter()
  4. maven {
  5. name = "forge"
  6. url = "http://files.minecraftforge.net/maven"
  7. }
  8. maven {
  9. url "https://plugins.gradle.org/m2/"
  10. }
  11. }
  12. dependencies {
  13. classpath 'net.minecraftforge.gradle:ForgeGradle:2.3-SNAPSHOT'
  14. classpath "gradle.plugin.net.minecrell:licenser:0.3"
  15. }
  16. }
  17. apply plugin: 'net.minecraftforge.gradle.forge'
  18. apply plugin: 'maven'
  19. apply plugin: 'net.minecrell.licenser'
  20. sourceCompatibility = JavaVersion.VERSION_1_8
  21. targetCompatibility = JavaVersion.VERSION_1_8
  22. version = "0.1.7"
  23. group = "pl.asie.charset.patches"
  24. archivesBaseName = "CharsetPatches"
  25. if (System.getenv("BUILD_NUMBER") != null)
  26. version += ".${System.getenv("BUILD_NUMBER")}"
  27. configurations {
  28. deploy
  29. }
  30. dependencies {
  31. deploy 'org.apache.maven.wagon:wagon-ssh:2.10'
  32. }
  33. minecraft {
  34. version = "1.12.2-14.23.5.2838"
  35. runDir = "run"
  36. useDepAts = true
  37. makeObfSourceJar = false
  38. mappings = "stable_39"
  39. replace '@VERSION@', project.version
  40. replace '@MC_VERSION@', version
  41. }
  42. repositories {
  43. mavenCentral()
  44. ivy {
  45. name 'asie dependency mirror'
  46. artifactPattern "http://asie.pl/javadeps/[module]-[revision](-[classifier]).[ext]"
  47. }
  48. }
  49. dependencies {
  50. deobfCompile name: "charset", version: "0560alpha"
  51. }
  52. license {
  53. sourceSets = [project.sourceSets.main]
  54. header = project.file("docs/licenses/LICENSE")
  55. ignoreFailures = true
  56. exclude '**/*.lang'
  57. exclude '**/*.info'
  58. exclude '**/*.mcmeta'
  59. }
  60. sourceSets {
  61. main {
  62. resources {
  63. srcDirs += 'docs'
  64. }
  65. }
  66. }
  67. processResources {
  68. // this will ensure that this task is redone when the versions change.
  69. inputs.property "version", project.version
  70. inputs.property "mcversion", project.minecraft.version
  71. // replace stuff in mcmod.info, nothing else
  72. from(sourceSets.main.resources.srcDirs) {
  73. include 'mcmod.info'
  74. // replace version and mcversion
  75. expand 'version':project.version, 'mcversion':project.minecraft.version
  76. }
  77. // copy everything else, thats not the mcmod.info
  78. from(sourceSets.main.resources.srcDirs) {
  79. exclude 'mcmod.info'
  80. }
  81. }
  82. jar {
  83. manifest {
  84. attributes("FMLCorePlugin": "pl.asie.charset.patches.CharsetPatchCore")
  85. }
  86. }
  87. if (file('private.gradle').exists()) {
  88. apply from: 'private.gradle'
  89. }
  90. //task signJar(type: SignJar, dependsOn: jar) {
  91. // onlyIf {
  92. // project.hasProperty('keyStore')
  93. // }
  94. // keyStore = project.keyStore
  95. // alias = project.keyStoreAlias
  96. // storePass = project.keyStorePass
  97. // keyPass = project.keyStoreKeyPass
  98. // inputFile = jar.archivePath
  99. // outputFile = jar.archivePath
  100. //}
  101. //build.dependsOn(signJar)