mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-07-01 05:04:43 +02:00
Split up dependencies for multiple version support.
The "core" module will house the entire abstraction layer of mcMMO, while the "bukkit" and "sponge" modules will house common code to share between the various versions being supported for each platform. Specifically, spigot will be split up based on the listener handlers being registered, and will be shadow packaged according to their targeted Minecraft version. Sponge's multi-version dependency will be based on the API version, since the only constant known between the various API versions is the plugin annotations and basic listener annotations. Signed-off-by: Gabriel Harris-Rouquette <gabizou@me.com>
This commit is contained in:
@ -7,7 +7,20 @@
|
||||
* in the user guide at https://docs.gradle.org/4.9/userguide/multi_project_builds.html
|
||||
*/
|
||||
rootProject.name = "mcMMO"
|
||||
include("core", "bukkit", "sponge")
|
||||
include(
|
||||
// Core abstraction layer of mcMMO
|
||||
"core",
|
||||
|
||||
// Bukkit/Spigot versions, core bukkit has plugin class
|
||||
"bukkit",
|
||||
"bukkit:1_13",
|
||||
"bukkit:1_12",
|
||||
"bukkit:1_8_8",
|
||||
|
||||
// Sponge Projects - SpongeAPI follows semver, so API versions can change
|
||||
"sponge", // Generic plugin class contains references to load specific listeners and registrations between APIs.
|
||||
"sponge:api7" // API 7 is special for MC 1.12.2
|
||||
)
|
||||
|
||||
pluginManagement {
|
||||
repositories {
|
||||
|
Reference in New Issue
Block a user