build.gradle.kts 1.1 KB

123456789101112131415161718192021222324252627
  1. import Config.Libs as Libs
  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. The import as allows for shorthand.
  6. plugins {
  7. `java-library` // This is already provided, but for static compilation,
  8. // we declare it here so we can use the IDE static type references
  9. }
  10. dependencies {
  11. compile(Libs.configurate) { // Configurate-Yaml dependency, inherits Configurate-core
  12. exclude(Deps.Groups.guava, Deps.Modules.guava) // Exclude guava
  13. exclude(Deps.Groups.checker, Deps.Modules.checker) // Exclude checkerframework
  14. }
  15. compile(Libs.flowmath) // flowpowered math, for more maths.
  16. compile(Libs.jdbc) // Database connectors
  17. compile(Libs.juli) // Database connectors
  18. testCompile(Libs.junitDep) // junit for testing
  19. // Spigot for in-dev dependency
  20. compileOnly(Libs.Bukkit.`1_13`.spigotApi) { // Spigot only for temporary usage in core
  21. isTransitive = false // Don't include spigot api's dependencies
  22. }
  23. }