Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-11-04 23:30:24 +01:00
8beedffea2
The base plugin is usually applied by the java plugin, but since that has been moved into the platforms, cleaning was no longer applied to the root dir (created and filled by the universal submodule).
42 Zeilen
1.2 KiB
Plaintext
42 Zeilen
1.2 KiB
Plaintext
import org.gradle.api.plugins.JavaPlugin.TEST_IMPLEMENTATION_CONFIGURATION_NAME
|
|
|
|
plugins {
|
|
base
|
|
id("via.build-logic")
|
|
}
|
|
|
|
allprojects {
|
|
group = "com.viaversion"
|
|
version = property("projectVersion") as String // from gradle.properties
|
|
description = "Allow newer clients to join older server versions."
|
|
}
|
|
|
|
val platforms = setOf(
|
|
projects.viaversionBukkit,
|
|
projects.viaversionBungee,
|
|
projects.viaversionFabric,
|
|
projects.viaversionSponge,
|
|
projects.viaversionVelocity
|
|
).map { it.dependencyProject }
|
|
|
|
val special = setOf(
|
|
projects.viaversion,
|
|
projects.viaversionApi,
|
|
projects.adventure
|
|
).map { it.dependencyProject }
|
|
|
|
subprojects {
|
|
when (this) {
|
|
in platforms -> plugins.apply("via.platform-conventions")
|
|
in special -> plugins.apply("via.base-conventions")
|
|
else -> plugins.apply("via.standard-conventions")
|
|
}
|
|
|
|
dependencies {
|
|
// Note: If manually starting tests doesn't work for you in IJ, change 'Gradle -> Run Tests Using' to 'IntelliJ IDEA'
|
|
TEST_IMPLEMENTATION_CONFIGURATION_NAME(rootProject.libs.netty)
|
|
TEST_IMPLEMENTATION_CONFIGURATION_NAME(rootProject.libs.guava)
|
|
TEST_IMPLEMENTATION_CONFIGURATION_NAME(rootProject.libs.bundles.junit)
|
|
}
|
|
}
|