- Support setting "api-version" containing a patch version for v1.20.5+
- Breaking change! Refactor development server implementation to use jpenilla/run-task plugin and integrate run-paper for server execution, improving maintainability and compatibility with various server versions.
- Breaking change!
Rename
bukkit.meta { ... }tobukkit.plugin { ... }.- Task
:parsePluginMetaFileand:mergePluginMetarenamed to:parsePluginYamland:mergePluginYamlrespectively. bukkit.disableMetaGeneration()replaced bybukkit.plugin.disablePluginYamlGeneration()- Package
.metarenamed to.pluginto reflect this change
- Task
- Set the default JVM toolchain version
instead of setting JVM target and source compatibility to 1.8.
By default, the minimal supported JVM version compatible with the specified
bukkit.server.versionis used. - Use lazy API for
bukkit.apiVersionandbukkit.generateMetaproperties. - Accept EULA using CLI parameter
-Dcom.mojang.eula.agree=trueinstead of changingeula.txt - Change the default value of
bukkit.server.debugtofalse. It is recommended to use IDE facilities to run server with enabled debugging.
- Fix PaperMC repository URL
- Fix group ID for PaperMC 1.17+
- Fix compatibility with new versions of Shadow plugin
- Target JVM 1.8 → 17
- Gradle 7.2 → 8.13
- Remove old deprecated APIs
0.10.1 - 2021-11-07
- Plugin meta now supports field
libraries.
- Gradle 7.1.1 -> 7.2
0.10.0 - 2021-07-20
- Plugin should be compatible with configuration cache
- JCenter replaced with MavenCentral
- Improved compatibility with Groovy
- Removed usages of deprecated APIs
- Add duplicate strategy to processResources (#58)
- Fix spigot core copying (#55)
0.9.2 - 2021-01-25
- Fixed task
copyPluginswhen shadow plugin is enabled
0.9.1 - 2021-01-16
codemc()repository extension
- BREAKING CHANGE:
bukkitdependency extension renamed tobukkitApi. This name is more consistent, also it avoids conflict withBukkitExtensionextension name.
0.9.0 - 2021-01-08
All plugin's tasks reworked to use actual Gradle APIs:
- Task Configuration Avoidance. Plugin's tasks will be created and configured only when it needed
- Up-to-date checks. Tasks will not re-run if input data not changed
- Optimized work in offline mode.
Use .set instead of =:
bukkit {
meta {
- desctiption = "My plugin's description"
+ description.set("My plugin's description")
}
}Field bukkit.version is deprecated now, you should use bukkit.apiVersion instead.
Also, you can specify a version for dev server different from apiVersion:
bukkit {
apiVersion = "1.16.4"
server {
version = "1.15.2" // Want to test plugin on older minecraft version
}
}If bukkit.server.version is not specified, will be used bukkit.apiVersion for server.
Now, BukkitGradle adds api-version field to plugin.yml.
It will be parsed from bukkit.apiVersion but you can override it with bukkit.meta.apiVersion if need:
bukkit {
apiVersion = "1.16.4" // Inferred api-version is 1.16
meta {
apiVersion.set("1.13") // But here you can override it
}
}BukkitGradle will not "eat" your existing plugin.yml file.
Its content will be used if you've not configured bukkit.meta in BukkitGradle.
If you don't want plugin.yml generation at all, you can disable it:
bukkit {
disableMetaGeneration()
}The plugin has been converted to Kotlin to make support easier. The plugin still can be configured with Groovy DSL but now it is friendly to Kotlin DSL.
- Removed task
:rebuildServerCore, use:buildServerCore --rerun-tasksinstead - Removed extension
DependencyHandler.craftbukkit(), useDependencyHandler.spigot()instead - Removed automatic
mavenLocal()apply, you should apply it manually if you need it - Removed repository extension
RepositoryHandler.vault(), useRepositoryHandler.jitpack()instead and read VaultAPI README
bukkit.runrenamed tobukkit.server. The old name is deprecated- Add
noguiargument by default tobukkitArgs - Type of properties
server.jvmArgsandserver.bukkitArgschanged fromStringtoList<String>. It makes it easier to add arguments without overriding defaults - Default main class pattern changed from
<groupId>.<lowercased name>.<name>to<groupId>.<name>
- Default bukkit version now is 1.16.4
- Update Gradle to 6.7.1