File tree 3 files changed +12
-3
lines changed
plugins/java/src/main/groovy
3 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -79,7 +79,10 @@ tasks.bootJar {
79
79
80
80
tasks. test {
81
81
useJUnitPlatform()
82
- jvmArgs " --add-opens" , " java.base/java.lang=ALL-UNNAMED"
82
+ doFirst {
83
+ jvmArgs + = ' -javaagent:' + configurations. testRuntimeClasspath. find { it. name. contains(" byte-buddy-agent" ) }
84
+ jvmArgs " --add-opens" , " java.base/java.lang=ALL-UNNAMED"
85
+ }
83
86
}
84
87
85
88
/**
Original file line number Diff line number Diff line change @@ -50,5 +50,8 @@ repositories {
50
50
51
51
tasks. test {
52
52
useJUnitPlatform()
53
- jvmArgs " --add-opens" , " java.base/java.lang=ALL-UNNAMED"
53
+ doFirst {
54
+ jvmArgs + = ' -javaagent:' + configurations. testRuntimeClasspath. find { it. name. contains(" byte-buddy-agent" ) }
55
+ jvmArgs " --add-opens" , " java.base/java.lang=ALL-UNNAMED"
56
+ }
54
57
}
Original file line number Diff line number Diff line change @@ -84,5 +84,8 @@ tasks.bootJar {
84
84
85
85
tasks. test {
86
86
useJUnitPlatform()
87
- jvmArgs " --add-opens" , " java.base/java.lang=ALL-UNNAMED"
87
+ doFirst {
88
+ jvmArgs + = ' -javaagent:' + configurations. testRuntimeClasspath. find { it. name. contains(" byte-buddy-agent" ) }
89
+ jvmArgs " --add-opens" , " java.base/java.lang=ALL-UNNAMED"
90
+ }
88
91
}
You can’t perform that action at this time.
0 commit comments