Join Slack
How can I pass jvmArgs to the JVM used as part of the `desktopRun` gradle task? Here's what I've tr...
# compose-desktop
r
rob42
11/13/2024, 12:16 PM
How can I pass jvmArgs to the JVM used as part of the
desktopRun
gradle task? Here's what I've tried: 1. Adding
jvmArgs
to build.gradle.kts (under compose.desktop.application.jvmArgs) -> no effect at all when running via
desktopRun
2. Adding args to
VM Option
in the IntelliJ run configuration -> these get applied to
Gradle
-- the parent PID, but not to the app itself.
rob42
11/13/2024, 3:58 PM
For any pour soul getting here from search, it appears that there are two seemingly identical tasks that run your app:
desktopRun
and
run
. Only
run
pulls in the JVM args from build.gradle.kts.
6
Views
Open in Slack
Previous
Next
kotlinlang
A modern programming language that makes developers happier.
Powered by