-
Notifications
You must be signed in to change notification settings - Fork 424
/
settings.gradle
26 lines (24 loc) · 1.05 KB
/
settings.gradle
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
rootProject.name = 'picocli'
include 'picocli-groovy'
include 'picocli-examples'
include 'picocli-shell-jline2'
include 'picocli-codegen'
include 'picocli-tests-java8'
if (org.gradle.api.JavaVersion.current().isJava8Compatible()) {
include 'picocli-spring-boot-starter'
include 'picocli-shell-jline3'
} else {
println("Excluding modules picocli-spring-boot-starter, picocli-shell-jline3: " +
"they require Java 8+ but we have Java version ${org.gradle.api.JavaVersion.current()}")
}
// some subprojects have Java Modules-related requirements, for example:
// test {jvmArgs('--add-opens', 'java.base/java.util=ALL-UNNAMED')}
// this syntax fails on Java 8, it requires Java 9+
if (org.gradle.api.JavaVersion.current().isJava9Compatible()) {
include 'picocli-codegen-tests-java9plus'
include 'picocli-tests-java9plus'
} else {
println("Excluding modules picocli-codegen-tests-java9plus, " +
"picocli-tests-java9plus from the build: " +
"they require Java 9+ but we have Java version ${org.gradle.api.JavaVersion.current()}")
}