-
Notifications
You must be signed in to change notification settings - Fork 870
/
build.gradle.kts
45 lines (36 loc) · 1.58 KB
/
build.gradle.kts
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
plugins {
id("otel.javaagent-instrumentation")
}
muzzle {
pass {
group.set("com.sun.xml.ws")
module.set("jaxws-rt")
versions.set("[2.2.0.1,3)")
// version 2.3.4 depends on org.glassfish.gmbal:gmbal-api-only:4.0.3 which does not exist
skip("2.3.4")
assertInverse.set(true)
extraDependency("javax.servlet:javax.servlet-api:3.0.1")
}
}
dependencies {
bootstrap(project(":instrumentation:servlet:servlet-common:bootstrap"))
library("com.sun.xml.ws:jaxws-rt:2.2.0.1")
// early versions of streambuffer depend on latest release of org.jvnet.staxex:stax-ex
// which doesn't work with java 8
library("com.sun.xml.stream.buffer:streambuffer:1.4")
compileOnly("javax.servlet:javax.servlet-api:3.0.1")
testImplementation(project(":instrumentation:jaxws:jaxws-2.0-common-testing"))
testInstrumentation(project(":instrumentation:jaxws:jaxws-2.0:javaagent"))
testInstrumentation(project(":instrumentation:jaxws:jaxws-jws-api-1.1:javaagent"))
testInstrumentation(project(":instrumentation:servlet:servlet-3.0:javaagent"))
testInstrumentation(project(":instrumentation:jetty:jetty-8.0:javaagent"))
latestDepTestLibrary("com.sun.xml.ws:jaxws-rt:2.+")
latestDepTestLibrary("com.sun.xml.stream.buffer:streambuffer:1.+")
}
tasks.withType<Test>().configureEach {
// required on jdk17
jvmArgs("--add-exports=java.xml/com.sun.org.apache.xerces.internal.dom=ALL-UNNAMED")
jvmArgs("--add-exports=java.xml/com.sun.org.apache.xerces.internal.jaxp=ALL-UNNAMED")
jvmArgs("--add-opens=java.base/java.lang=ALL-UNNAMED")
jvmArgs("-XX:+IgnoreUnrecognizedVMOptions")
}