From bd9f883bb63937b78824d0bceea52570648fc51b Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Fri, 10 Jun 2022 23:27:56 +0530 Subject: Improve Kotlin build caching (#1947) * Update Gradle properties with Kotlin 1.7 build things * Disable build tooling metadata task * Revert "Revert "github: stop disabling configuration cache in CI"" This reverts commit 08951643f51a5a62ca2419cb3a5e935b1d7de413. * Store build reports as artifacts --- gradle.properties | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'gradle.properties') diff --git a/gradle.properties b/gradle.properties index 1e3126f9..b8cf46bf 100644 --- a/gradle.properties +++ b/gradle.properties @@ -24,6 +24,13 @@ kapt.incremental.apt=true # Turn off AP discovery in compile path to enable compile avoidance kapt.include.compile.classpath=false +# New incremental compilation for Kotlin +kotlin.incremental.useClasspathSnapshot=true +kotlin.build.report.output=file + +# Disable Gradle task that breaks configuration caching +kotlin.mpp.enableKotlinToolingMetadataArtifact=false + # Use R8 instead of ProGuard for code shrinking. android.enableR8.fullMode=true -- cgit v1.2.3