spigotAPI

fun Project.spigotAPI(config: DependencyConfig, spigotConfig: SpigotConfig = SpigotConfig()): ExternalModuleDependency
  1. Sets the Java version for the project depending on the version

  2. Adds the Repository.SONATYPE_SNAPSHOTS_OLD repository if the version is 1.15 or below

  3. Adds the Repository.MAVEN_CENTRAL and Repository.SPIGOT repositories

  4. Adds the Spigot-API dependency (org.spigotmc:spigot-api:getVersionString)

Parameters

config

The configuration for the Spigot-API dependency