Slackbot
06/01/2022, 7:59 AMJavi
06/01/2022, 8:02 AMRex Sun
06/01/2022, 8:12 AMtony
06/01/2022, 8:45 AMRex Sun
06/01/2022, 9:17 AMChris Lee
06/01/2022, 9:30 AMRex Sun
06/01/2022, 9:48 AMUP_TO_DATE
or FROM_CACHE
if we change some code in base modules, even if the changes are non-abi changes. For “builds in parallel”, as I mentioned before, there are many tasks can not be built in parallel in Android build process. And the configuration phase spends much more time than before, too. And it’s hard for us to use configuration cache. And if there’s no cache, it will be really painful.Rex Sun
06/01/2022, 9:49 AMRex Sun
06/01/2022, 9:51 AMSteve Ebersole
06/01/2022, 11:44 AMSteve Ebersole
06/01/2022, 11:45 AMSteve Ebersole
06/01/2022, 11:47 AMSteve Ebersole
06/01/2022, 11:47 AMSteve Ebersole
06/01/2022, 11:48 AMSteve Ebersole
06/01/2022, 11:49 AMSteve Ebersole
06/01/2022, 11:50 AMKen Yee
06/01/2022, 12:36 PMRex Sun
06/01/2022, 12:38 PMRex Sun
06/01/2022, 12:39 PMKen Yee
06/01/2022, 12:42 PMRex Sun
06/01/2022, 12:50 PMSteve Ebersole
06/01/2022, 12:58 PMSteve Ebersole
06/01/2022, 12:59 PMRex Sun
06/01/2022, 1:02 PMSteve Ebersole
06/01/2022, 1:05 PMSteve Ebersole
06/01/2022, 1:06 PMSteve Ebersole
06/01/2022, 1:09 PMRex Sun
06/01/2022, 1:14 PMRex Sun
06/01/2022, 1:17 PMSteve Ebersole
06/01/2022, 1:23 PMSteve Ebersole
06/01/2022, 1:24 PMSteve Ebersole
06/01/2022, 1:24 PMSteve Ebersole
06/01/2022, 1:24 PM@CacheableTask
)Rex Sun
06/01/2022, 1:31 PM@CacheableTask
and documents about build cache. We found that build cache doesn’t work well when we have Kotlin together with Java in our project. Kotlin didn’t adapt to Gradle’s compile avoidance and made its own way to perform compile avoidance. This may be the root cause.Steve Ebersole
06/01/2022, 1:34 PMChris Lee
06/01/2022, 1:34 PMSteve Ebersole
06/01/2022, 1:35 PMSteve Ebersole
06/01/2022, 1:35 PMChris Lee
06/01/2022, 1:35 PMKotlin didn’t adapt to Gradle’s compile avoidance and made its own way to perform compile avoidance.
Steve Ebersole
06/01/2022, 1:36 PMSteve Ebersole
06/01/2022, 1:37 PMSteve Ebersole
06/01/2022, 1:37 PMSteve Ebersole
06/01/2022, 1:37 PMSteve Ebersole
06/01/2022, 1:38 PMChris Lee
06/01/2022, 1:38 PMSteve Ebersole
06/01/2022, 1:39 PM^^^
😉Chris Lee
06/01/2022, 1:39 PMSteve Ebersole [6:37 AM]
The other thing I found with build-cache @Rex Sun... it is CRITICAL that you get inputs and outputs correct
Steve Ebersole [6:37 AM]
Which is harder than you might expect
Steve Ebersole [6:37 AM]
E.g. tasks have to specify relative paths (absolute is the default), etc
Steve Ebersole [6:38 AM]
If these are tasks you wrote... no problem (well, within having to find and verify them)
Steve Ebersole
06/01/2022, 1:55 PMChris Lee
06/01/2022, 1:56 PMSteve Ebersole
06/01/2022, 1:56 PMprocessResources
I replace text during the copySteve Ebersole
06/01/2022, 1:57 PMprocessResources
as an inputJohn Bellini
06/01/2022, 3:47 PM