Slackbot
05/17/2022, 8:36 AMVampire
05/17/2022, 8:44 AMJAVA_OPTS line in gradle.properties has no effect whatsoever.
And the message is more info than warning.
Do you mabe also have daemon disabled either by property or by commandline argument?
Does maybe info or debug logging give more information?
It should at least show the arguments with which the daemon is started.CristianGM
05/17/2022, 10:01 AMJohannes
05/17/2022, 10:07 AMgradle.properties.Johannes
05/17/2022, 10:08 AMgradle.properties ?CristianGM
05/17/2022, 10:13 AMCristianGM
05/17/2022, 10:13 AMJohannes
05/17/2022, 10:16 AMgradle.properties fileVampire
05/17/2022, 10:18 AMVampire
05/17/2022, 10:19 AMgradle.properties, because it is the first process to start so it it a hen and egg problem.
You would need to have the process running to read the gradle.properties to know the VM settings to start the process with which to read the gradle.properties.Johannes
05/17/2022, 10:22 AMJohannes
05/17/2022, 10:22 AMVampire
05/17/2022, 10:22 AMVampire
05/17/2022, 10:23 AMVampire
05/17/2022, 10:24 AMVampire
05/17/2022, 10:24 AMJohannes
05/17/2022, 10:25 AMCristianGM
05/17/2022, 10:26 AMVampire
05/17/2022, 10:26 AMVampire
05/17/2022, 10:26 AMVampire
05/17/2022, 10:27 AMbut for that...look how your CI disables gradle daemon and override itThat's most likely not possible though
Vampire
05/17/2022, 10:27 AMCristianGM
05/17/2022, 10:28 AMVampire
05/17/2022, 10:28 AMVampire
05/17/2022, 10:28 AMJohannes
05/17/2022, 10:28 AMCristianGM
05/17/2022, 10:28 AMVampire
05/17/2022, 10:28 AMVampire
05/17/2022, 10:29 AMVampire
05/17/2022, 10:29 AMVampire
05/17/2022, 10:29 AMCristianGM
05/17/2022, 10:29 AMCristianGM
05/17/2022, 10:30 AMVampire
05/17/2022, 10:30 AMit seems to imply that the log line is output because the memory settings differThat's one option. As I said, look at info or debug output, that should give more information, especially the daemon arguments
Vampire
05/17/2022, 10:30 AMnot even env vars?No, env var will not beat commandline argument
Johannes
05/17/2022, 10:31 AMorg.gradle.jvmargs=-Xmx2048M
so it is only/also caused by thisJohannes
05/17/2022, 10:32 AMVampire
05/17/2022, 10:32 AMThe issue is CI is doing something wrong because it used to be the right thing years agoThat's arguable actually. Gradle indeed recommends in the userguide to have it enabled even on CI. But I usually also disable the daemon on CI due to various reasons. For example if you have a build that uses some tool that uses static state, builds will influence each other even cross-project. You can avoid that with disabling the daemon for a little slower builds because the daemon has to start up. But on CI I prefer correctness over speed.
Vampire
05/17/2022, 10:33 AMso it is only/also caused by thisNo, if you run two builds with this setting, the second would still reuse the daemon of the first. It most likely really is that the daemon is disabled.
Vampire
05/17/2022, 10:34 AMCristianGM
05/17/2022, 10:36 AMa build that uses some tool that uses static stateThen the daemon may be the last of your problems anyway, I usually see ephemeral CI disabling the daemon, when there it's not unnecessary (and shouldn't really matter)
Vampire
05/17/2022, 10:39 AMThen the daemon may be the last of your problemsWhy? As long as each build is running in a new process it works fine. Of course at developers it might (and did) cause trouble. But at least on CI it would be correct builds.
Vampire
05/17/2022, 10:39 AMCristianGM
05/17/2022, 10:41 AMCristianGM
05/17/2022, 10:42 AMVampire
05/17/2022, 10:42 AMCristianGM
05/17/2022, 10:43 AM