From bbdac9d1ba43a9952214c6ebe813ea04ee3491eb Mon Sep 17 00:00:00 2001 From: Adam Brown Date: Fri, 16 Sep 2022 14:57:11 +0100 Subject: [PATCH 1/2] fix build cache misses - forcing the stem string template generator to be cachable, without this the templates are regenerated causing the vector module to recompile its sources (our slowest task!) --- library/ui-strings/build.gradle | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/library/ui-strings/build.gradle b/library/ui-strings/build.gradle index 860fc3c980..6a31f24c9b 100644 --- a/library/ui-strings/build.gradle +++ b/library/ui-strings/build.gradle @@ -20,3 +20,7 @@ android { jvmTarget = "11" } } + +tasks.withType( com.likethesalad.android.templates.common.tasks.BaseTask) { + it.outputs.cacheIf { true } +} From 16693206987275ca83c6170cc7c0082a6e2511bb Mon Sep 17 00:00:00 2001 From: Adam Brown Date: Fri, 16 Sep 2022 15:03:24 +0100 Subject: [PATCH 2/2] adding changelog entry --- changelog.d/7157.misc | 1 + 1 file changed, 1 insertion(+) create mode 100644 changelog.d/7157.misc diff --git a/changelog.d/7157.misc b/changelog.d/7157.misc new file mode 100644 index 0000000000..dc52ed73cd --- /dev/null +++ b/changelog.d/7157.misc @@ -0,0 +1 @@ +Fixing build cache misses when compiling the vector module