forked from ViaVersion/ViaVersion
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
47 lines (41 loc) · 1.43 KB
/
build.gradle.kts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
import org.gradle.api.plugins.JavaPlugin.TEST_IMPLEMENTATION_CONFIGURATION_NAME
plugins {
base
id("via.build-logic")
}
allprojects {
group = "gg.solarmc.viaversion" // Solar
version = property("projectVersion") as String // from gradle.properties
description = "Allow newer clients to join older server versions."
}
val platforms = setOf(
projects.viaversionBukkit,
/* Solar start
projects.viaversionBungee,
projects.viaversionFabric,
projects.viaversionSponge,
*/ // Solar end
projects.viaversionVelocity
).map { it.dependencyProject }
val special = setOf(
projects.viaversion,
projects.viaversionApi,
// Solar start
projects.viaversionCommon
// projects.adventure
// Solar end
).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")
}
// Note: If manually starting tests doesn't work for you in IJ, change 'Gradle -> Run Tests Using' to 'IntelliJ IDEA'
dependencies {
// The alternative to this long boi is writing "testImplementation", including the quotes
TEST_IMPLEMENTATION_CONFIGURATION_NAME(rootProject.libs.netty)
TEST_IMPLEMENTATION_CONFIGURATION_NAME(rootProject.libs.guava)
TEST_IMPLEMENTATION_CONFIGURATION_NAME(rootProject.libs.bundles.junit)
}
}