-
Notifications
You must be signed in to change notification settings - Fork 335
Expand file tree
/
Copy pathbuild.gradle
More file actions
59 lines (46 loc) · 1.01 KB
/
build.gradle
File metadata and controls
59 lines (46 loc) · 1.01 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
plugins {
id 'me.champeau.jmh'
}
ext {
minJavaVersionForTests = JavaVersion.VERSION_11
}
apply from: "$rootDir/gradle/java.gradle"
apply plugin: "idea"
java {
toolchain {
languageVersion = JavaLanguageVersion.of(11)
}
}
tasks.withType(Javadoc) {
javadocTool.set(javaToolchains.javadocToolFor(java.toolchain))
}
[JavaCompile, GroovyCompile].each {
tasks.withType(it).configureEach {
setJavaVersion(it, 11)
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
}
minimumBranchCoverage = 0.8
minimumInstructionCoverage = 0.8
dependencies {
api project(':internal-api')
testImplementation project(':dd-java-agent:testing')
testImplementation libs.slf4j
}
forbiddenApisMain {
failOnMissingClasses = false
}
forbiddenApisMain_java11 {
failOnMissingClasses = false
}
idea {
module {
jdkName = '11'
}
}
jmh {
jmhVersion = '1.28'
duplicateClassesStrategy = DuplicatesStrategy.EXCLUDE
jvm = System.getenv('JAVA_11_HOME') + '/bin/java'
}