Aosen Xiong
12/31/2024, 1:31 AM${buildDir}
to get the string for output, is there any more idiomatic way to write it with new build.directory api?Kevin Brightwell
12/31/2024, 11:55 AMbuildDirectory.dir(...)
or .file(...)
methods will let you get providers to ensure they behave with lazy evaluation. (You'd still eventually use .get().asFile
or the other flipped version)Vampire
12/31/2024, 12:57 PM.get()
at configuration time you introduce ordering problems, timing problems, and race conditions. It could always happen that the value changes after you got it and thus you used a stale value. So whenever possible try to not get
the provider at configuration time but work with providers.