build.gradle 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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.3.1.53"
  8. def minecraftVersion = "19w09a"
  9. def yarnVersion = "19w09a.1"
  10. def fabricVersion = "0.2.3.107"
  11. def pluginLoaderVersion = "1.14-1.0.6-8"
  12. minecraft {
  13. }
  14. processResources {
  15. filesMatching('fabric.mod.json') {
  16. expand 'version': project.version
  17. }
  18. inputs.property "version", project.version
  19. }
  20. repositories {
  21. maven { url "https://tehnut.info/maven/" }
  22. }
  23. dependencies {
  24. minecraft "com.mojang:minecraft:${minecraftVersion}"
  25. mappings "net.fabricmc:yarn:${yarnVersion}"
  26. modCompile "net.fabricmc:fabric-loader:0.3.7.109"
  27. // Fabric API. This is technically optional, but you probably want it anyway.
  28. modCompile "net.fabricmc:fabric:${fabricVersion}"
  29. modCompile "info.tehnut.pluginloader:plugin-loader:${pluginLoaderVersion}"
  30. }
  31. // Loom will automatically attach sourcesJar to a RemapSourcesJar task and to the "build" task
  32. // if it is present.
  33. // If you remove this task, sources will not be generated.
  34. task sourcesJar(type: Jar, dependsOn: classes) {
  35. classifier = 'sources'
  36. from sourceSets.main.allSource
  37. }