From 7bab2dba1f1945438569e77715c4a4dec6db03f2 Mon Sep 17 00:00:00 2001 From: "Nataliya.Valtman" Date: Tue, 15 Aug 2023 12:48:39 +0200 Subject: [PATCH] Remove gson from compiler fat jar KT-56438: Fixed (cherry picked from commit 6263b6764369a5217a79fca1cefd08f9791b0675) --- prepare/compiler/build.gradle.kts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/prepare/compiler/build.gradle.kts b/prepare/compiler/build.gradle.kts index 60ed7ec3f104a..1dacfb239f21b 100644 --- a/prepare/compiler/build.gradle.kts +++ b/prepare/compiler/build.gradle.kts @@ -236,7 +236,8 @@ dependencies { fatJarContents(commonDependency("org.lz4:lz4-java")) { isTransitive = false } fatJarContents(commonDependency("org.jetbrains.intellij.deps:asm-all")) { isTransitive = false } fatJarContents(commonDependency("com.google.guava:guava")) { isTransitive = false } - fatJarContents(commonDependency("com.google.code.gson:gson")) { isTransitive = false} + //Gson is needed for kotlin-build-statistics. Build statistics could be enabled for JPS and Gradle builds. Gson will come from inteliij or KGP. + proguardLibraries(commonDependency("com.google.code.gson:gson")) { isTransitive = false} fatJarContentsStripServices(commonDependency("com.fasterxml:aalto-xml")) { isTransitive = false } fatJarContents(commonDependency("org.codehaus.woodstox:stax2-api")) { isTransitive = false }