spigot API
fun Project.spigotAPI(config: DependencyConfig, spigotConfig: SpigotConfig = SpigotConfig()): ExternalModuleDependency
Sets the Java version for the project depending on the version
Adds the Repository.SONATYPE_SNAPSHOTS_OLD repository if the version is 1.15 or below
Adds the Repository.MAVEN_CENTRAL and Repository.SPIGOT repositories
Adds the Spigot-API dependency (org.spigotmc:spigot-api:getVersionString)
Parameters
config
The configuration for the Spigot-API dependency