build.gradle 988 B

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