build.gradle 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. import net.fabricmc.loom.task.RemapJar
  2. plugins {
  3. id 'fabric-loom' version '0.2.1-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://minecraft.curseforge.com/api/maven" }
  16. }
  17. processResources {
  18. filesMatching('fabric.mod.json') {
  19. expand 'version': project.version
  20. }
  21. inputs.property "version", project.version
  22. }
  23. configurations {
  24. included {
  25. transitive = false
  26. }
  27. }
  28. shadowJar {
  29. version = project.mod_version.replaceAll('\\+build.', '.')
  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 "net.fabricmc:fabric:${project.fabric_version}"
  42. include "net.fabricmc:fabric:${project.fabric_version}"
  43. modCompile "cloth:Cloth:${cloth_version}"
  44. include "cloth:Cloth:${cloth_version}"
  45. modCompile "cloth-config:ClothConfig:${cloth_config_version}"
  46. include "cloth-config:ClothConfig:${cloth_config_version}"
  47. compile "blue.endless:jankson:${project.jankson_version}"
  48. included "blue.endless:jankson:${project.jankson_version}"
  49. modCompile "io.github.prospector.modmenu:ModMenu:${modmenu_version}"
  50. }