From b21c7f4fb103c71289cddba22e5aeada81cd748f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89amonn=20McManus?= Date: Tue, 15 Aug 2023 12:19:08 -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: 557209904 --- 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 + + +