forked from junit-team/junit5
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.gradle
36 lines (32 loc) · 1.12 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
27
28
29
30
31
32
33
34
35
36
// Require Java 9 or higher
int javaVersion = Integer.valueOf(JavaVersion.current().getMajorVersion())
if (javaVersion < 9) {
throw new GradleException("The JUnit 5 build requires Java 9 or higher. " +
"Currently executing with Java " + javaVersion + ".")
}
rootProject.name = 'junit5'
include 'documentation'
include 'junit-jupiter-api'
include 'junit-jupiter-engine'
include 'junit-jupiter-migrationsupport'
include 'junit-jupiter-params'
include 'junit-platform-commons'
include 'junit-platform-commons-java-9'
include 'junit-platform-console'
include 'junit-platform-console-standalone'
include 'junit-platform-engine'
include 'junit-platform-launcher'
include 'junit-platform-runner'
include 'junit-platform-suite-api'
include 'junit-platform-surefire-provider'
include 'junit-vintage-engine'
include 'platform-tests'
include 'platform-tooling-support-tests'
include 'junit-bom'
// check that every subproject has a custom build file
// based on the project name
rootProject.children.each { project ->
project.buildFileName = "${project.name}.gradle"
assert project.buildFile.isFile()
}
enableFeaturePreview('STABLE_PUBLISHING')