for my gradle, I pass the jvm args in the "run" bl...
# tornadofx
m
for my gradle, I pass the jvm args in the "run" block
f
Ok, thx you I keep this tip.
@Marshall, run block Do you mean :`run` task?
m
are you using groovy or kts for your build.gradle? I think you are using build.gradle.kts?
f
kts
m
in that case, the syntax is different
let me see if I can figure iout
f
yes i know it
Copy code
tasks.run {
    jvmArgs = ["-Xverify:none", "-XX:MinHeapFreeRatio=10", "-XX:MaxHeapFreeRatio=40",
        "--add-opens=javafx.base/com.sun.javafx.binding=ALL-UNNAMED",
        "--add-opens=javafx.controls/javafx.scene.control=ALL-UNNAMED",
        "--add-opens=javafx.graphics/javafx.scene=ALL-UNNAMED"
    ]
}
i tried this but not found jvmArgs
I don't like using run task, I like more tornadofx task of intellij plugin
m
Copy code
tasks.run.get().setJvmArgs(listOf("-Xverify:none", "-XX:MinHeapFreeRatio=10", "-XX:MaxHeapFreeRatio=40",
    "--add-opens=javafx.base/com.sun.javafx.binding=ALL-UNNAMED",
    "--add-opens=javafx.controls/javafx.scene.control=ALL-UNNAMED",
    "--add-opens=javafx.graphics/javafx.scene=ALL-UNNAMED"
))
I think that will work
intellij can use your gradle config for running
I have all my projects setup that way so I can build, run, etc without having to use intellij
you also do
Copy code
tasks.named<JavaExec>("run") {
    jvmArgs = listOf("-Xverify:none", "-XX:MinHeapFreeRatio=10", "-XX:MaxHeapFreeRatio=40",
    "--add-opens=javafx.base/com.sun.javafx.binding=ALL-UNNAMED",
    "--add-opens=javafx.controls/javafx.scene.control=ALL-UNNAMED",
    "--add-opens=javafx.graphics/javafx.scene=ALL-UNNAMED"
)
}
✔️ 1
f
Last question: Do you always open those three modules by default in each javafx project?
Are the most common modules?
m
for my needs I do
haven't needed any others yet