-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsettings.gradle.kts
More file actions
32 lines (26 loc) · 986 Bytes
/
settings.gradle.kts
File metadata and controls
32 lines (26 loc) · 986 Bytes
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
// https://docs.gradle.org/current/javadoc/org/gradle/api/initialization/Settings.html
rootProject.name = "plantuml"
val isCiBuild = System.getenv("CI") != null
val isDevTest = System.getenv("DEV_TEST") != null
val version: String by settings
println("Running settings.gradle.kts")
println("Version is " + version)
// Check Java version
val javaVersion = JavaVersion.current()
println("Current Java version is " + javaVersion)
if (isCiBuild && !isDevTest) {
include("plantuml-asl")
include("plantuml-bsd")
include("plantuml-epl")
include("plantuml-lgpl")
include("plantuml-mit")
include("plantuml-mit-light")
// Only include plantuml-gplv2 if Java version is 11 or higher
if (javaVersion.isCompatibleWith(JavaVersion.VERSION_11)) {
include("plantuml-gplv2")
} else {
println("Skipping plantuml-gplv2 as it requires Java 11 or higher")
}
} else {
println("Not a CI [without DevTest] build: only GPL will be generated")
}