forked from GeyserMC/Floodgate
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
65 lines (56 loc) · 1.61 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
plugins {
`java-library`
alias(libs.plugins.micronaut) apply false
alias(libs.plugins.lombok) apply false
}
allprojects {
group = "org.geysermc.floodgate"
description = "Allows Bedrock players to join Java edition servers while keeping the server in online mode"
apply {
plugin("floodgate.build-logic")
plugin("net.kyori.indra.git")
}
if (shouldAddBranchName()) {
version = versionWithBranchName()
}
}
//todo differentiate maven publishing from downloads publishing
val deployProjects = setOf(
projects.api,
// for future Floodgate integration + Fabric
projects.core,
// projects.database,
projects.isolation,
projects.bungee,
projects.spigot,
projects.velocity,
projects.bungeeBase,
projects.spigotBase,
projects.velocityBase,
projects.universal
).map { it.dependencyProject }
val shadowProjects = setOf(
projects.api,
// for future Floodgate integration + Fabric
projects.core,
projects.bungeeBase,
projects.spigotBase,
projects.velocityBase,
projects.universal
).map { it.dependencyProject }
//todo re-add checkstyle when we switch back to 2 space indention
// and take a look again at spotbugs someday
subprojects {
apply {
plugin("java-library")
plugin("io.freefair.lombok")
plugin("floodgate.build-logic")
}
when (this) {
in deployProjects -> plugins.apply("floodgate.publish-conventions")
else -> plugins.apply("floodgate.base-conventions")
}
if (this in shadowProjects) {
plugins.apply("floodgate.shadow-conventions")
}
}