-
Notifications
You must be signed in to change notification settings - Fork 333
Expand file tree
/
Copy pathbuild.gradle
More file actions
54 lines (41 loc) · 1.65 KB
/
build.gradle
File metadata and controls
54 lines (41 loc) · 1.65 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
// Set properties before any plugins get loaded
ext {
// the tests need Java 11 because the JFR writer got compiled with a version
// of ByteBuffer.position(int) which is binary incompatible with Java 8 ¯\_(ツ)_/¯
minJavaVersionForTests = JavaVersion.VERSION_11
// need access to jdk.jfr package
skipSettingCompilerRelease = true
excludeJdk = ['SEMERU11', 'SEMERU17']
}
apply from: "$rootDir/gradle/java.gradle"
apply plugin: 'idea'
dependencies {
api project(':dd-java-agent:agent-profiling:profiling-controller')
implementation libs.jctools
implementation libs.slf4j
annotationProcessor libs.autoservice.processor
compileOnly libs.autoservice.annotation
testImplementation group: 'org.openjdk.jmc', name: 'flightrecorder.writer', version: '8.1.0'
testImplementation libs.bundles.mockito
testImplementation libs.bundles.junit5
}
excludedClassesCoverage += ['com.datadog.profiling.controller.jfr.JdkTypeIDs']
// Shared JFR implementation. The earliest Java version JFR is working on is Java 8
tasks.named("compileTestJava") {
setJavaVersion(it, 11)
// tests should be compiled in Java 8 compatible way
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
// Disable '-processing' because some annotations are not claimed.
// Disable '-options' because we are compiling for java8 without specifying bootstrap - intentionally.
// Disable '-path' because we do not have some of the paths seem to be missing.
options.compilerArgs.addAll(['-Xlint:all,-processing,-options,-path'/*, '-Werror'*/])
}
forbiddenApisMain {
failOnMissingClasses = false
}
idea {
module {
jdkName = '11'
}
}