-
Notifications
You must be signed in to change notification settings - Fork 0
Multiproject builds
Aki edited this page May 30, 2018
·
1 revision
Multiple plugins can be aggregated by one project.
- Enable the
AggregatePlugin
on the aggregating module. - Assign the plugin projects to
Bukkit/serverPlugins
andBungee/serverPlugins
.
val commonSettings = Seq(
Bukkit / serverVersion := "1.12.2-R0.1-SNAPSHOT",
Bungee / serverVersion := "1.12-SNAPSHOT"
)
lazy val root = (project in file("."))
.enablePlugins(AggregatePlugin)
.settings(commonSettings)
.settings(
Bukkit / serverPlugins += helloBukkit,
Bukkit / serverPlugins += helloBungee
)
lazy val helloBukkit = (project in file("hello-bukkit"))
.enablePlugins(BukkitPlugin)
.settings(commonSettings)
lazy val helloBungee = (project in file("hello-bukkit"))
.enablePlugins(BungeePlugin)
.settings(commonSettings)