loke
05/09/2025, 2:27 PM--add-opens
argument. As such, I have a few questions about this:
• How can I add this JVM argument to the tests in this module?
• Is there a way to get the module to add this parameter to some global list of arguments so all other modules that depend on this one doesn't have to explicitly add this argument to their JVM arguments?ephemient
05/09/2025, 2:46 PMtasks.test {
jvmArgs(listOf("--add-opens", "..."))
}
2. you can try adding to JAVA_TOOL_OPTIONS
outside of Gradle which will apply to all Java launches, but there's no configuration for forwarding JVM args to dependent modulesloke
05/09/2025, 3:15 PMloke
05/09/2025, 3:15 PMloke
05/09/2025, 3:17 PMcould not find method test()
. Where do I actually put this?
This is the module in question by the way: https://codeberg.org/loke/array/src/branch/master/contrib/arrow/build.gradleloke
05/09/2025, 3:18 PM.test
but rather .jvmTest
it seems.Vampire
05/09/2025, 3:18 PMloke
05/09/2025, 3:19 PMlistOf
doesn't work. I needed to use += "..."
. I guess listOf
would be for the Kotlin syntax.ephemient
05/09/2025, 3:19 PMloke
05/09/2025, 3:20 PM--add-opens
nonsense in the JVM and get it to work like old Java used to work?ephemient
05/09/2025, 3:20 PMloke
05/09/2025, 3:21 PMVampire
05/09/2025, 3:21 PMVampire
05/09/2025, 3:22 PMkotlin {
jvm {
testRuns.configureEach {
executionTask {
jvmArgs(...)
}
}
}
idiomaticlyephemient
05/09/2025, 3:23 PMloke
05/09/2025, 3:25 PMloke
05/09/2025, 3:25 PM