DEV Community

Discussion on: Removing illegal reflective access warnings in Grails 4

Collapse
 
yggdrasild profile image
Johnny Haugen Sørgår

Works great. If you want same behaviour for testing:

tasks.withType(Test) {
jvmArgs = jvmOpenModulesArgs
}

Collapse
 
erichelgeson profile image
Eric Helgeson

Ha, thought of that last evening I should add tests in too! Will update the post.

I think there could be a simpler way to add it to the forked boot task too, but the few things I tried didn't work. Will update the post if someone suggests one.