From 6d8da5fdb54c6480b6c7673ba4dd3fa0538ba214 Mon Sep 17 00:00:00 2001 From: Cesar Munoz Date: Fri, 3 Nov 2023 18:21:55 +0100 Subject: [PATCH] Ignoring duplicated "*-info.class" files --- .../gradle/android/ByteBuddyLocalClassesEnhancerTask.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/byte-buddy-gradle-plugin/android-plugin/src/main/java/net/bytebuddy/build/gradle/android/ByteBuddyLocalClassesEnhancerTask.java b/byte-buddy-gradle-plugin/android-plugin/src/main/java/net/bytebuddy/build/gradle/android/ByteBuddyLocalClassesEnhancerTask.java index 7b03a5f052..977a3250c0 100644 --- a/byte-buddy-gradle-plugin/android-plugin/src/main/java/net/bytebuddy/build/gradle/android/ByteBuddyLocalClassesEnhancerTask.java +++ b/byte-buddy-gradle-plugin/android-plugin/src/main/java/net/bytebuddy/build/gradle/android/ByteBuddyLocalClassesEnhancerTask.java @@ -377,7 +377,8 @@ public void retain(Plugin.Engine.Source.Element element) throws IOException { } outputStream.closeEntry(); } catch (ZipException exception) { - if (!element.getName().startsWith("META-INF")) { + String name = element.getName(); + if (!name.startsWith("META-INF") && !name.endsWith("-info.class")) { throw exception; } }