forked from DataDog/dd-trace-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
44 lines (35 loc) · 941 Bytes
/
build.gradle
File metadata and controls
44 lines (35 loc) · 941 Bytes
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
apply from: "$rootDir/gradle/java.gradle"
apply plugin: "idea"
minimumBranchCoverage = 0.6
excludedClassesCoverage += ['datadog.trace.agent.tooling.*']
dependencies {
api project(':dd-java-agent:agent-tooling')
testImplementation project(':dd-java-agent:testing')
}
// Use Java 11 to build a delegating ClassFileTransformer that understands Java modules
sourceSets {
"main_java11" {
java.srcDirs "${project.projectDir}/src/main/java11"
}
}
compileMain_java11Java.configure {
setJavaVersion(it, 11)
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
dependencies {
main_java11CompileOnly project(':dd-java-agent:agent-tooling')
main_java11CompileOnly sourceSets.main.output
runtimeOnly sourceSets.main_java11.output
}
jar {
from sourceSets.main_java11.output
}
forbiddenApisMain_java11 {
failOnMissingClasses = false
}
idea {
module {
jdkName = '11'
}
}