From 16fe22d172fc80edc34fa655202a51f67a6c0d98 Mon Sep 17 00:00:00 2001 From: Konstantin Tskhovrebov Date: Tue, 5 Mar 2024 10:36:46 +0100 Subject: [PATCH] [gradle] Add a flag to fix build on TeamCity with configuration caches enabled Error was: > Listener registration 'Gradle.addListener' by build is unsupported. --- gradle-plugins/gradle.properties | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gradle-plugins/gradle.properties b/gradle-plugins/gradle.properties index dd9ac4a39c..e9362b8f02 100644 --- a/gradle-plugins/gradle.properties +++ b/gradle-plugins/gradle.properties @@ -3,6 +3,10 @@ org.gradle.configuration-cache=true org.gradle.caching=true kotlin.code.style=official +# TC flag to fix a build with configuration cache enabled +# > Listener registration 'Gradle.addListener' by build is unsupported. +teamcity.internal.gradle.runner.launch.mode=auto + # Default version of Compose Libraries used by Gradle plugin compose.version=1.6.0-dev1383 # The latest version of Compose Compiler used by Gradle plugin. Used only in tests/CI.