-
Notifications
You must be signed in to change notification settings - Fork 335
Expand file tree
/
Copy pathbuild.gradle
More file actions
42 lines (36 loc) · 1.12 KB
/
build.gradle
File metadata and controls
42 lines (36 loc) · 1.12 KB
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
ext {
minJavaVersionForTests = JavaVersion.VERSION_11
// Zulu has backported profiling support
forceJdk = ['ZULU8']
// By default tests with be compiled for `minJavaVersionForTests` version,
// but in this case we would like to avoid this since we would like to run with ZULU8
skipSettingTestJavaVersion = true
}
apply from: "$rootDir/gradle/java.gradle"
apply plugin: "idea"
dependencies {
testImplementation 'de.thetaphi:forbiddenapis:3.8'
testImplementation libs.bundles.junit5
testImplementation libs.bundles.jmc
testImplementation libs.commons.math
testImplementation libs.bundles.mockito
}
// Must use Java 11 to build JFR enabled code - there is no JFR in OpenJDK 8 (revisit once JFR in Java 8 is available)
[compileMain_java11Java, compileTestJava].each {
setJavaVersion(it, 11)
it.sourceCompatibility = JavaVersion.VERSION_1_8
it.targetCompatibility = JavaVersion.VERSION_1_8
it.options.compilerArgs.addAll(['-Xlint:all,-processing,-options,-path'])
}
forbiddenApisMain_java11 {
failOnMissingClasses = false
}
test {
useJUnit()
useJUnitPlatform()
}
idea {
module {
jdkName = '11'
}
}