build.gradle 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. import net.fabricmc.loom.task.RemapJar
  2. plugins {
  3. id 'fabric-loom' version '0.2.0-SNAPSHOT'
  4. id "com.github.johnrengelman.shadow" version "4.0.3"
  5. }
  6. sourceCompatibility = 1.8
  7. targetCompatibility = 1.8
  8. archivesBaseName = "RoughlyEnoughItems"
  9. version = project.mod_version
  10. minecraft {
  11. }
  12. repositories {
  13. maven { url "https://tehnut.info/maven/" }
  14. maven { url "https://oss.sonatype.org/content/repositories/snapshots" }
  15. maven { url "https://maven.jamieswhiteshirt.com/libs-release/" }
  16. maven { url "https://minecraft.curseforge.com/api/maven" }
  17. }
  18. processResources {
  19. filesMatching('fabric.mod.json') {
  20. expand 'version': project.version
  21. }
  22. inputs.property "version", project.version
  23. }
  24. configurations {
  25. included {
  26. transitive = false
  27. }
  28. }
  29. shadowJar {
  30. classifier = null
  31. configurations = [project.configurations.included]
  32. }
  33. task remapShadowJar(type: RemapJar) {
  34. jar = shadowJar.archivePath
  35. }
  36. tasks.remapShadowJar.dependsOn tasks.shadowJar
  37. dependencies {
  38. minecraft "com.mojang:minecraft:${project.minecraft_version}"
  39. mappings "net.fabricmc:yarn:${project.yarn_version}"
  40. modCompile "net.fabricmc:fabric-loader:${project.fabricloader_version}"
  41. modCompile "info.tehnut.pluginloader:plugin-loader:${project.pluginloader_version}"
  42. modCompile "net.fabricmc:fabric:${project.fabric_version}"
  43. modCompile "cloth:Cloth:${cloth_version}"
  44. compile "blue.endless:jankson:${project.jankson_version}"
  45. included "blue.endless:jankson:${project.jankson_version}"
  46. }