Compatibility add-on for XNet? YNot!
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.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  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.2.4"
  23. group = "pl.asie.ynot"
  24. archivesBaseName = "YNot"
  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.2836"
  35. runDir = "run"
  36. useDepAts = true
  37. makeObfSourceJar = false
  38. mappings = "snapshot_20180616"
  39. replace '@VERSION@', project.version
  40. replace '@MC_VERSION@', version
  41. }
  42. repositories {
  43. mavenCentral()
  44. maven {
  45. url "http://maven.k-4u.nl"
  46. }
  47. maven {
  48. name "Mighty Pirates"
  49. url "http://maven.cil.li"
  50. }
  51. ivy {
  52. name 'asie dependency mirror'
  53. artifactPattern "http://asie.pl/javadeps/[module]-[revision](-[classifier]).[ext]"
  54. }
  55. }
  56. license {
  57. sourceSets = [project.sourceSets.main]
  58. header = project.file("docs/licenses/LICENSE")
  59. ignoreFailures = true
  60. exclude '**/*.lang'
  61. exclude '**/*.info'
  62. exclude '**/*.mcmeta'
  63. matching('**/pl/asie/charset/api/**') {
  64. header = project.file("docs/licenses/LICENSE-API")
  65. }
  66. }
  67. dependencies {
  68. deobfCompile "com.github.mcjty:xnet:1.12-1.8.0"
  69. deobfCompile "com.github.mcjty:mcjtylib:1.12-3.5.1"
  70. deobfCompile "li.cil.oc:OpenComputers:MC1.12-1.7.+:api"
  71. deobfCompile "li.cil.tis3d:TIS-3D:MC1.12-1.3.+:api"
  72. deobfCompile name: "Mekanism", version: "1.12.2-9.7.4.375"
  73. deobfCompile name: "Flamingo", version: "1.12-v1.11"
  74. }
  75. sourceSets {
  76. main {
  77. resources {
  78. srcDirs += 'docs'
  79. }
  80. }
  81. }
  82. processResources {
  83. // this will ensure that this task is redone when the versions change.
  84. inputs.property "version", project.version
  85. inputs.property "mcversion", project.minecraft.version
  86. // replace stuff in mcmod.info, nothing else
  87. from(sourceSets.main.resources.srcDirs) {
  88. include 'mcmod.info'
  89. // replace version and mcversion
  90. expand 'version':project.version, 'mcversion':project.minecraft.version
  91. }
  92. // copy everything else, thats not the mcmod.info
  93. from(sourceSets.main.resources.srcDirs) {
  94. exclude 'mcmod.info'
  95. }
  96. }
  97. reobfJar {
  98. setJar(tasks.jar.archivePath)
  99. }
  100. reobfJar.dependsOn jar
  101. if (file('private.gradle').exists()) {
  102. apply from: 'private.gradle'
  103. }