build.gradle.kts 791 B

1234567891011121314151617181920212223242526
  1. subprojects {
  2. apply(plugin = "java-library")
  3. // Java is not explicitly needed, but keeps IJ happy with the tasks block
  4. apply(plugin = "java")
  5. repositories {
  6. mavenLocal()
  7. maven("https://repo.spongepowered.org/maven")
  8. maven("https://hub.spigotmc.org/nexus/content/repositories/snapshoits")
  9. maven("https://repo.codemc.org/repository/maven-public")
  10. maven("https://maven.sk89q.com/repo")
  11. maven("https://mvnrepository.com/artifact/org.jetbrains/annotations")
  12. }
  13. tasks {
  14. withType(JavaCompile::class.java) {
  15. options.encoding = "UTF-8"
  16. }
  17. }
  18. configure<JavaPluginConvention> {
  19. targetCompatibility = JavaVersion.VERSION_1_8
  20. sourceCompatibility = JavaVersion.VERSION_1_8
  21. }
  22. }