ViaVersion/build.gradle.kts

34 lines
825 B
Plaintext
Raw Normal View History

2021-02-17 14:49:10 +01:00
plugins {
base
2021-05-25 06:58:34 +02:00
id("via.build-logic")
2021-02-17 14:49:10 +01:00
}
2021-02-24 13:25:09 +01:00
allprojects {
2021-04-24 20:54:38 +02:00
group = "com.viaversion"
2021-05-25 06:58:34 +02:00
version = property("projectVersion") as String // from gradle.properties
2021-02-24 13:25:09 +01:00
description = "Allow newer clients to join older server versions."
}
2021-02-17 14:49:10 +01:00
val main = setOf(
projects.viaversion,
projects.viaversionCommon,
projects.viaversionApi,
2021-05-25 06:58:34 +02:00
projects.viaversionBukkit,
projects.viaversionBungee,
projects.viaversionFabric,
projects.viaversionSponge,
projects.viaversionVelocity
).map { it.dependencyProject }
2021-02-17 14:49:10 +01:00
2021-05-25 06:58:34 +02:00
val special = setOf(
projects.adventure
).map { it.dependencyProject }
2021-02-17 14:49:10 +01:00
2021-05-25 06:58:34 +02:00
subprojects {
when (this) {
in main -> plugins.apply("via.shadow-conventions")
2021-05-25 06:58:34 +02:00
in special -> plugins.apply("via.base-conventions")
else -> plugins.apply("via.standard-conventions")
2021-02-17 14:49:10 +01:00
}
}