File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -79,13 +79,6 @@ subprojects {
7979 systemProperty(" java.util.logging.manager" , " org.jboss.logmanager.LogManager" )
8080 jvmArgs(" --add-opens" , " java.base/java.lang=ALL-UNNAMED" )
8181
82- val mockitoAgent = configurations.testRuntimeClasspath.get().find {
83- it.name.contains(" mockito-core" )
84- }
85- if (mockitoAgent != null ) {
86- jvmArgs(" -javaagent:${mockitoAgent.absolutePath} " )
87- }
88-
8982 testLogging {
9083 exceptionFormat = TestExceptionFormat .FULL
9184
Original file line number Diff line number Diff line change @@ -83,3 +83,12 @@ tasks.quarkusDev {
8383 // https://github.com/quarkusio/quarkus/pull/49920
8484 jvmArgs = listOf (" --add-opens" , " java.base/java.lang=ALL-UNNAMED" )
8585}
86+
87+ tasks.withType<Test > {
88+ val mockitoAgent = configurations.testRuntimeClasspath.get().find {
89+ it.name.contains(" mockito-core" )
90+ }
91+ if (mockitoAgent != null ) {
92+ jvmArgs(" -javaagent:${mockitoAgent.absolutePath} " )
93+ }
94+ }
You can’t perform that action at this time.
0 commit comments