forked from remkop/picocli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.gradle
25 lines (23 loc) · 1.02 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
rootProject.name = 'picocli'
include 'picocli-groovy'
include 'picocli-examples'
include 'picocli-shell-jline2'
include 'picocli-codegen'
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()}")
}