Slackbot
04/27/2022, 11:39 PMbenedikt
04/28/2022, 6:56 AMall
vs. configureEach
. I was using the latter for everything related to the TaskContainer
but not for custom containers.benedikt
04/28/2022, 6:59 AMproject.layout
vs. project.file
? Any recommendations here? Iāve started only using the former.tony
04/28/2022, 7:11 AMProjectLayout
these days and always look for it in PR reviews. In particular, I heavily discourage people from using new File()
tony
04/28/2022, 7:12 AMall
just recently, in dealing with a custom domain object collection that I specifically wanted eagerly realized for use at configuration time. šmelix
04/28/2022, 7:27 AMall
vs configureEach
is not that simple. If everything becomes lazy, then nothing realizes nothing and nothing happens. So this rule works great for tasks or data which needs to be realized only if a task is going to be executed. Otherwise it can lead to surprising behavior: https://github.com/gradle/gradle/issues/19955tony
04/28/2022, 7:41 AMmelix
04/28/2022, 7:43 AMmelix
04/28/2022, 7:44 AMtony
04/28/2022, 7:46 AMall
to iterate over a custom container for the express purpose of registering tasks if some predicate were true on a given itemmelix
04/28/2022, 7:49 AMtony
04/28/2022, 7:51 AMcreate()
and all
. Rules <> guidelines š¤·Martin
04/28/2022, 11:10 AM@DelicateEagerApi
maybe? As it is now it's really hard to remember all of it and pitfalls.Chris
04/28/2022, 3:28 PMtony
04/28/2022, 4:06 PMChris
04/28/2022, 4:14 PMChris
04/28/2022, 4:18 PMtony
04/28/2022, 5:26 PMChris
04/28/2022, 5:58 PMChris
04/28/2022, 5:59 PM$ loc
--------------------------------------------------------------------------------
Language Files Lines Blank Comment Code
--------------------------------------------------------------------------------
Java 3323 419271 61743 50937 306591
JSON 24 28826 0 0 28826
JavaScript 105 20115 1915 986 17214
XML 115 3104 220 462 2422
Sass 40 2587 151 184 2252
HTML 33 2099 204 148 1747
Batch 6 939 129 0 810
Plain Text 14 597 103 0 494
YAML 10 475 11 22 442
CSS 5 478 48 30 400
Markdown 10 416 171 0 245
Awk 2 226 30 36 160
Bourne Shell 11 236 27 99 110
--------------------------------------------------------------------------------
Total 3698 479369 64752 52904 361713
--------------------------------------------------------------------------------
melix
04/28/2022, 7:53 PMChris
04/28/2022, 8:22 PMÅukasz Wasylkowski
04/29/2022, 12:43 PMmelix
04/29/2022, 12:51 PMtony
04/29/2022, 2:50 PMmelix
04/29/2022, 2:50 PMhelp
configures everythingtony
04/29/2022, 2:55 PMmelix
04/29/2022, 2:56 PMtony
04/29/2022, 2:57 PMmelix
04/29/2022, 2:57 PMChris
04/29/2022, 2:58 PMmelix
04/29/2022, 3:00 PMmelix
04/29/2022, 3:03 PMtony
04/29/2022, 3:07 PMmelix
04/29/2022, 3:07 PMtony
04/29/2022, 3:08 PMhelp
than I anticipatedmelix
04/29/2022, 3:08 PM--help
?tony
04/29/2022, 3:10 PMhelp
, it'll have the side effect of downloading plugins. For some reason, this step often fails during an Android Studio sync with an obscure error, but running a build from CLI is more stabletony
04/29/2022, 3:11 PM:foo:bar:assembleDebug
cost 12s of configuration. This involved 21k tasksmelix
04/29/2022, 3:12 PMtony
04/29/2022, 3:13 PM