Slackbot
08/29/2023, 11:52 AMVampire
08/29/2023, 11:54 AMMartin
08/29/2023, 11:55 AMVampire
08/29/2023, 11:55 AM--info
output when a new daemon is started, for example when using --no-daemon
, you see that one of the daemon arguments is -javaagent:...\.gradle\wrapper\dists\gradle-x.y-bin\...\gradle-x.y\lib\agents\gradle-instrumentation-agent-x.y.jar
Vampire
08/29/2023, 11:56 AMMartin
08/29/2023, 11:56 AMVampire
08/29/2023, 11:57 AMVampire
08/29/2023, 11:58 AMSounds like that could potentially be expensive? You'd have to visit/rewrite every class on the fly?It is persisted and reused. So on first usage it might need some more time than before, but then it should just work. And anytime worth the time you save in return for using CC
Martin
08/29/2023, 11:59 AMJendrik Johannes
08/29/2023, 12:11 PMlayout...
and providers...
. Then it's clearer for you and for Gradle what is part of the build configuration. E.g.:
layout.projectDirectory.file("....")
providers.environmentVariable("...")
(I think if it would have been my call, I would have used the instrumentation to forbidden System.env
and such in future versions and direct everyone to a consistent API. But that's would have been a too drastic breaking change for Gradle I presume.)Vampire
08/29/2023, 12:13 PMJendrik Johannes
08/29/2023, 12:14 PMMartin
08/29/2023, 12:14 PMJendrik Johannes
08/29/2023, 12:14 PMVampire
08/29/2023, 12:15 PM