build.gradle 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. plugins {
  2. id 'fabric-loom' version '0.10-SNAPSHOT'
  3. id "io.freefair.lombok" version "6.3.0"
  4. }
  5. sourceCompatibility = JavaVersion.VERSION_17
  6. targetCompatibility = JavaVersion.VERSION_17
  7. archivesBaseName = project.archives_base_name
  8. version = project.mod_version
  9. group = project.maven_group
  10. dependencies {
  11. // to change the versions see the gradle.properties file
  12. minecraft "com.mojang:minecraft:${project.minecraft_version}"
  13. mappings "net.fabricmc:yarn:${project.yarn_mappings}:v2"
  14. modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"
  15. }
  16. processResources {
  17. inputs.property "version", project.version
  18. filesMatching("fabric.mod.json") {
  19. expand "version": project.version
  20. }
  21. }
  22. tasks.withType(JavaCompile).configureEach {
  23. // ensure that the encoding is set to UTF-8, no matter what the system default is
  24. // this fixes some edge cases with special characters not displaying correctly
  25. // see http://yodaconditions.net/blog/fix-for-java-file-encoding-problems-with-gradle.html
  26. it.options.encoding = "UTF-8"
  27. it.options.release = 17
  28. }
  29. jar {
  30. from "LICENSE"
  31. }