build.gradle.kts 1003 B

123456789101112131415161718192021222324252627
  1. import Config.Libs.Bukkit.`1_12` as Bukkit
  2. // Config is located in <root>/buildSrc/src/main/java/Config.kt
  3. // It provides a bunch of constant values we use as dependency
  4. // strings, so we don't have to duplicate a bunch of them in
  5. // various scripts.
  6. plugins {
  7. java // This is already provided, but for static compilation,
  8. // we declare it here so we can use the IDE static type references
  9. }
  10. /*
  11. Dependency inheritance is as follows
  12. - ":core", which provides
  13. configurate, tomcat jdbc/juli, and flowmath. It excludes sub
  14. dependencies like guava and apache commons lang.
  15. - ":bukkit", which provides nothing on it's own, except the
  16. core bukkit classes that can be built on 1.13.2 API (which may change).
  17. It also defines all subprojects to depend on ":core", and ":bukkit",
  18. and bstats-bukkit.
  19. */
  20. dependencies {
  21. compileOnly(Bukkit.api) // Bukkit API for 1.12.2
  22. compileOnly(Bukkit.nms) // CraftBukkit for 1.12.2
  23. compileOnly(Bukkit.wgLegacy) // WorldGuard for 1.12.2 bukkit
  24. }