From 3317f71700bfd91728559d5f4d3090980f82d88a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89amonn=20McManus?= Date: Tue, 15 Aug 2023 10:46:11 -0700 Subject: [PATCH] Remove `META-INF/*.kotlin_module` entries from the AutoValue jar. We bundle a shaded copy of `kotlinx.metadata.jvm` and related libraries, which we use to inspect Kotlin data classes. The libraries are only called from Java code, which means that `META-INF/kotlinx-metadata-jvm.kotlin_module` and the like serve no purpose, other than to confuse the Kotlin compiler when it sees these entries. Fixes #1574. RELNOTES=An "incompatible version" issue with Kotlin compilation has been fixed. See #1574. PiperOrigin-RevId: 557180357 --- value/processor/pom.xml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/value/processor/pom.xml b/value/processor/pom.xml index cedc5f0824..a93c776512 100644 --- a/value/processor/pom.xml +++ b/value/processor/pom.xml @@ -230,6 +230,17 @@ com.google.code.findbugs:jsr305 + + + *:* + + + META-INF/*.kotlin_module + + +