yes
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

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. buildscript {
  2. repositories {
  3. jcenter()
  4. maven { url = "http://files.minecraftforge.net/maven" }
  5. maven {
  6. url "https://plugins.gradle.org/m2/"
  7. }
  8. }
  9. dependencies {
  10. classpath 'net.minecraftforge.gradle:ForgeGradle:2.3-SNAPSHOT'
  11. classpath "gradle.plugin.net.minecrell:licenser:0.3"
  12. }
  13. }
  14. apply plugin: 'net.minecraftforge.gradle.forge'
  15. apply plugin: 'net.minecrell.licenser'
  16. version = "1.0.0"
  17. group = "pl.asie.extrafoamforliteloader"
  18. archivesBaseName = "ExtraFoamForLiteLoader"
  19. sourceCompatibility = targetCompatibility = JavaVersion.VERSION_1_8
  20. compileJava {
  21. sourceCompatibility = targetCompatibility = JavaVersion.VERSION_1_8
  22. }
  23. minecraft {
  24. version = "1.12.2-14.23.5.2837"
  25. runDir = "run"
  26. mappings = "snapshot_20180708"
  27. }
  28. repositories {
  29. maven {
  30. name = 'mumfrey'
  31. url 'http://repo.mumfrey.com/content/repositories/snapshots'
  32. }
  33. maven {
  34. name = 'sponge'
  35. url = 'https://repo.spongepowered.org/maven/'
  36. }
  37. }
  38. license {
  39. sourceSets = [project.sourceSets.main]
  40. header = project.file("docs/LICENSE")
  41. ignoreFailures = true
  42. exclude '**/*.lang'
  43. exclude '**/*.info'
  44. exclude '**/*.mcmeta'
  45. }
  46. dependencies {
  47. runtimeOnly('com.mumfrey:liteloader:1.12.2-SNAPSHOT') {
  48. transitive = false;
  49. }
  50. runtimeOnly('org.spongepowered:mixin:0.7.5-SNAPSHOT') {
  51. exclude module: 'asm-commons'
  52. exclude module: 'asm-tree'
  53. exclude module: 'launchwrapper'
  54. exclude module: 'guava'
  55. exclude module: 'log4j-core'
  56. }
  57. }
  58. processResources {
  59. // this will ensure that this task is redone when the versions change.
  60. inputs.property "version", project.version
  61. inputs.property "mcversion", project.minecraft.version
  62. // replace stuff in mcmod.info, nothing else
  63. from(sourceSets.main.resources.srcDirs) {
  64. include 'mcmod.info'
  65. expand 'version':project.version, 'mcversion':project.minecraft.version
  66. }
  67. from(sourceSets.main.resources.srcDirs) {
  68. exclude 'mcmod.info'
  69. }
  70. }
  71. jar {
  72. manifest.attributes "Manifest-Version": "1.0"
  73. manifest.attributes "FMLCorePlugin": "pl.asie.extrafoamforliteloader.EFFLL"
  74. }