build.gradle.kts 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. buildscript {
  2. repositories { jcenter() }
  3. dependencies { classpath("com.github.jengelman.gradle.plugins:shadow:4.0.4") }
  4. }
  5. val bukkit: Project by rootProject.extra
  6. val core: Project by rootProject.extra
  7. // This configures the bukkit/spigot ecosystem repositories, so they all share the same repos
  8. allprojects {
  9. repositories {
  10. // Spigot & Bukkit
  11. maven("https://hub.spigotmc.org/nexus/content/repositories/snapshots/")
  12. maven("https://oss.sonatype.org/content/repositories/snapshots")
  13. mavenLocal() // For nms variants
  14. }
  15. dependencies {
  16. compile(core) // includes junit for tests
  17. compile("org.bstats", "bstats-bukkit", "1.4") // Bukkit bstats
  18. }
  19. }
  20. subprojects {
  21. dependencies {
  22. // Provide the base bukkit plugin dependency for plugin classloading.
  23. // All "versioned" implementations will be properly classloaded by the bukkit parent
  24. (compile(bukkit) as ModuleDependency).apply { exclude("org.spigotmc") }
  25. }
  26. }
  27. plugins {
  28. java
  29. }
  30. dependencies {
  31. implementation("org.spigotmc:spigot-api:1.13.2-R0.1-SNAPSHOT") // Spigot API
  32. }