-
Notifications
You must be signed in to change notification settings - Fork 332
Expand file tree
/
Copy pathbuild.gradle
More file actions
87 lines (77 loc) · 3.65 KB
/
build.gradle
File metadata and controls
87 lines (77 loc) · 3.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
plugins {
id 'com.gradleup.shadow'
}
apply from: "$rootDir/gradle/java.gradle"
// We do not publish separate jar, but having version file is useful
apply from: "$rootDir/gradle/version.gradle"
minimumInstructionCoverage = 0.1
minimumBranchCoverage = 0.6
excludedClassesCoverage += [
'com.datadog.debugger.model.*Exception',
'com.datadog.debugger.parser.*Exception',
'com.datadog.debugger.agent.DebuggerTransformer.SafeClassWriter',
'com.datadog.debugger.agent.DebuggerProbe.When.Threshold',
'com.datadog.debugger.agent.DebuggerAgent.ShutdownHook',
'com.datadog.debugger.agent.DebuggerAgent',
'com.datadog.debugger.agent.DebuggerAgent.DebuggerReporter',
// too old for this coverage (JDK 1.2)
'antlr.*',
// only static classes
'com.datadog.debugger.util.MoshiSnapshotHelper',
// based on JDK WeakHashMap
'com.datadog.debugger.util.WeakIdentityHashMap*',
// tested through smoke tests
'com.datadog.debugger.exception.FailedTestReplayExceptionDebugger',
// dynamically compiled test classes - exclude to prevent Jacoco instrumentation interference
'com.datadog.debugger.symboltest.SymbolExtraction*'
]
dependencies {
// main dependencies
compileOnly project(':dd-java-agent:agent-builder')
compileOnly project(':dd-java-agent:agent-tooling')
compileOnly project(':dd-trace-core')
implementation project(':communication')
implementation project(':dd-java-agent:agent-debugger:debugger-bootstrap')
implementation project(':dd-java-agent:agent-debugger:debugger-el')
implementation project(':internal-api')
implementation project(':products:metrics:metrics-lib')
implementation project(':utils:container-utils')
implementation project(':utils:logging-utils')
implementation libs.bundles.asm
implementation libs.dogstatsd
implementation libs.moshi
implementation libs.okhttp
implementation libs.slf4j
testImplementation libs.asm.util
testImplementation libs.bundles.junit5
testImplementation libs.junit.jupiter.params
testImplementation libs.bundles.mockito
testImplementation group: 'com.squareup.okhttp3', name: 'mockwebserver', version: libs.versions.okhttp.legacy.get()
testImplementation group: 'org.springframework.boot', name: 'spring-boot', version: '2.3.5.RELEASE'
testImplementation group: 'org.springframework.boot', name: 'spring-boot-starter-web', version: '2.3.5.RELEASE'
testImplementation group: 'org.freemarker', name: 'freemarker', version: '2.3.30'
testImplementation group: 'org.jooq', name: 'joor-java-8', version: '0.9.13'
testImplementation group: 'org.jetbrains.kotlin', name: 'kotlin-compiler-embeddable', version: "2.1.21"
testImplementation group: 'org.jetbrains.kotlinx', name: 'kotlinx-coroutines-core', version: "1.0.0"
testImplementation project(':dd-java-agent:agent-debugger:debugger-test-scala')
testImplementation project(':dd-trace-core')
testImplementation project(':dd-java-agent:agent-builder')
testImplementation project(':remote-config:remote-config-core')
testImplementation project(':utils:test-utils')
testRuntimeOnly group: 'org.scala-lang', name: 'scala-compiler', version: libs.versions.scala213.get()
testRuntimeOnly group: 'antlr', name: 'antlr', version: '2.7.7'
testRuntimeOnly group: 'org.springframework', name: 'spring-web', version: '6.1.0'
}
tasks.named("shadowJar", ShadowJar) {
dependencies deps.excludeShared
dependencies {
exclude(project(':dd-java-agent:agent-debugger:debugger-bootstrap'))
}
}
tasks.named("jar", Jar) {
archiveClassifier = 'unbundled'
from sourceSets.main.output
}
// we want to test with no special reflective access (no --add-opens)
ext.allowReflectiveAccessToJdk = false