This is a small update including a new Spigot description option called apiVersionForMcVersion which allows you to use the same version for both dependencies and apiVersion:
ext {
MC_VERSION = '1.19.3'
}
// ...
dependencies {
compileOnly spigotApi(MC_VERSION)
}
spigot {
desc {
// ...
apiVersionForMcVersion MC_VERSION
}
}Thanks to @PhoenixmitX for this feature.
Thanks to @Baaasty and @PhoenixmitX for fixing the getPaperGroup method, used for paperApi and waterfall dependencies.