build.gradle 1000 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. plugins {
  2. id 'fabric-loom' version '0.2.0-SNAPSHOT'
  3. }
  4. sourceCompatibility = 1.8
  5. targetCompatibility = 1.8
  6. archivesBaseName = "RoughlyEnoughItems"
  7. version = "2.0.0.39"
  8. def minecraftVersion = "19w03c"
  9. def yarnVersion = "19w03c.4"
  10. def fabricVersion = "0.1.4.76"
  11. minecraft {
  12. }
  13. processResources {
  14. filesMatching('fabric.mod.json') {
  15. expand 'version': project.version
  16. }
  17. inputs.property "version", project.version
  18. }
  19. dependencies {
  20. minecraft "com.mojang:minecraft:${minecraftVersion}"
  21. mappings "net.fabricmc:yarn:${yarnVersion}"
  22. modCompile "net.fabricmc:fabric-loader:0.3.2.96"
  23. // Fabric API. This is technically optional, but you probably want it anyway.
  24. modCompile "net.fabricmc:fabric:${fabricVersion}"
  25. }
  26. // Loom will automatically attach sourcesJar to a RemapSourcesJar task and to the "build" task
  27. // if it is present.
  28. // If you remove this task, sources will not be generated.
  29. task sourcesJar(type: Jar, dependsOn: classes) {
  30. classifier = 'sources'
  31. from sourceSets.main.allSource
  32. }