build.gradle 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. apply plugin: 'java'
  2. sourceSets {
  3. googleextension {
  4. java
  5. }
  6. main {
  7. java {
  8. runtimeClasspath += googleextension.output
  9. }
  10. }
  11. test {
  12. java {
  13. runtimeClasspath += googleextension.output
  14. }
  15. }
  16. }
  17. dependencies {
  18. minecraft "com.mojang:minecraft:${rootProject.minecraft_version}"
  19. mappings "de.oceanlabs.mcp:mcp_snapshot:20201028-1.16.3"
  20. compileOnly "com.google.code.findbugs:jsr305:3.+"
  21. // We depend on fabric loader here to use the fabric @Environment annotations
  22. // Do NOT use other classes from fabric loader
  23. modCompile "net.fabricmc:fabric-loader:${rootProject.fabric_loader_version}"
  24. testImplementation(platform('org.junit:junit-bom:5.7.1'))
  25. testImplementation('org.junit.jupiter:junit-jupiter')
  26. googleextensionCompileOnly('com.google.guava:guava:21.0')
  27. googleextensionCompileOnly('org.jetbrains:annotations:19.0.0')
  28. }
  29. architectury {
  30. injectInjectables = false
  31. common()
  32. }
  33. jar {
  34. from(sourceSets.googleextension.output)
  35. }
  36. test {
  37. useJUnitPlatform()
  38. }