ViaVersion/build.gradle.kts

43 lines
1.3 KiB
Plaintext
Raw Normal View History

2021-05-25 06:58:34 +02:00
import org.gradle.api.plugins.JavaPlugin.TEST_IMPLEMENTATION_CONFIGURATION_NAME
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
2021-05-25 06:58:34 +02:00
val platforms = setOf(
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.viaversion,
projects.viaversionApi,
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 platforms -> plugins.apply("via.platform-conventions")
in special -> plugins.apply("via.base-conventions")
else -> plugins.apply("via.standard-conventions")
2021-02-17 14:49:10 +01:00
}
2021-05-29 11:50:07 +02:00
// Note: If manually starting tests doesn't work for you in IJ, change 'Gradle -> Run Tests Using' to 'IntelliJ IDEA'
2021-02-17 14:49:10 +01:00
dependencies {
2021-05-29 11:50:07 +02:00
// The alternative to this long boi is writing "testImplementation", including the quotes
2021-05-25 06:58:34 +02:00
TEST_IMPLEMENTATION_CONFIGURATION_NAME(rootProject.libs.netty)
TEST_IMPLEMENTATION_CONFIGURATION_NAME(rootProject.libs.guava)
TEST_IMPLEMENTATION_CONFIGURATION_NAME(rootProject.libs.bundles.junit)
2021-02-17 14:49:10 +01:00
}
}