build.gradle.kts 946 B

1234567891011121314151617181920212223242526272829
  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. mavenCentral()
  8. maven("https://repo.spongepowered.org/maven")
  9. maven("https://hub.spigotmc.org/nexus/content/repositories/snapshots")
  10. maven("https://repo.codemc.org/repository/maven-public")
  11. maven("https://maven.sk89q.com/repo")
  12. maven("https://mvnrepository.com/artifact/org.jetbrains/annotations")
  13. maven("https://repo.aikar.co/content/groups/aikar/")
  14. maven("https://hub.spigotmc.org/nexus/content/groups/public/")
  15. }
  16. tasks {
  17. withType(JavaCompile::class.java) {
  18. options.encoding = "UTF-8"
  19. }
  20. }
  21. configure<JavaPluginConvention> {
  22. targetCompatibility = JavaVersion.VERSION_1_8
  23. sourceCompatibility = JavaVersion.VERSION_1_8
  24. }
  25. }