build.gradle.kts 1011 B

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