Nikolay
07/23/2024, 7:08 PMgradle.properties. Looking at the documentation I thought I could do it by saying --no-gradle-daemon and using the JAVA_OPTS environment variable but the build still uses the settings defined in gradle.properties . Is there a way to run gradle with different JVM settings depending on which gradle task we want to run…Vampire
07/24/2024, 12:05 PM--no-gradle-daemon would not even run. 😄
But given you mean --no-daemon, the option name is a bit misleading.
It actually means "use no daemon if the CLI process fulfills the requirements for the daemon, otherwise run a one-shot daemon that is terminated after the build run".
So instead of --no-daemon you probably need to use -Dorg.gradle.jvmargs=... to override what you have in gradle.properties.Nikolay
07/24/2024, 12:36 PMNikolay
07/24/2024, 12:36 PMNikolay
07/24/2024, 4:14 PMVampire
07/24/2024, 4:19 PMNikolay
07/24/2024, 4:19 PMVampire
07/24/2024, 4:19 PMVampire
07/24/2024, 4:19 PM-D... you are setting the Gradle property mentioned in Option 1Nikolay
07/24/2024, 4:20 PM-Dorg.gradle.jvmargs=... at the command lineVampire
07/24/2024, 4:23 PMVampire
07/24/2024, 4:24 PM