Skip to content

Commit b9a2ab1

Browse files
committed
fix annotation
1 parent a7b4ad4 commit b9a2ab1

File tree

1 file changed

+8
-7
lines changed
  • instrumentation/spring/spring-boot-actuator-autoconfigure-2.0/javaagent

1 file changed

+8
-7
lines changed

instrumentation/spring/spring-boot-actuator-autoconfigure-2.0/javaagent/build.gradle.kts

+8-7
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,6 @@ dependencies {
2222
latestDepTestLibrary("ch.qos.logback:logback-classic:+")
2323
}
2424

25-
tasks.withType<Test>().configureEach {
26-
// required on jdk17
27-
jvmArgs("--add-opens=java.base/java.lang=ALL-UNNAMED")
28-
jvmArgs("-XX:+IgnoreUnrecognizedVMOptions")
29-
30-
jvmArgs("-Dotel.instrumentation.spring-boot-actuator-autoconfigure.enabled=true")
31-
}
3225
tasks {
3326
val testPrometheus by registering(Test::class) {
3427
dependencies {
@@ -41,6 +34,14 @@ tasks {
4134
}
4235
}
4336

37+
tasks.withType<Test>().configureEach {
38+
// required on jdk17
39+
jvmArgs("--add-opens=java.base/java.lang=ALL-UNNAMED")
40+
jvmArgs("-XX:+IgnoreUnrecognizedVMOptions")
41+
42+
jvmArgs("-Dotel.instrumentation.spring-boot-actuator-autoconfigure.enabled=true")
43+
}
44+
4445
val latestDepTest = findProperty("testLatestDeps") as Boolean
4546

4647
// spring 6 (spring boot 3) requires java 17

0 commit comments

Comments
 (0)