build.gradle 961 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. compileOnly "com.google.code.findbugs:jsr305:3.+"
  19. // We depend on fabric loader here to use the fabric @Environment annotations
  20. // Do NOT use other classes from fabric loader
  21. modImplementation "net.fabricmc:fabric-loader:${rootProject.fabric_loader_version}"
  22. testImplementation(platform('org.junit:junit-bom:5.7.1'))
  23. testImplementation('org.junit.jupiter:junit-jupiter')
  24. googleextensionCompileOnly('com.google.guava:guava:21.0')
  25. googleextensionCompileOnly('org.jetbrains:annotations:19.0.0')
  26. }
  27. architectury {
  28. injectInjectables = false
  29. common()
  30. }
  31. jar {
  32. from(sourceSets.googleextension.output)
  33. }
  34. test {
  35. useJUnitPlatform()
  36. }