Skip to content

Commit a5fa04f

Browse files
authored
Fix com.jetbrains.JBR: can't find referenced method (#5316)
After JetBrains/compose-multiplatform-core#2097 is merged, CI fails with: ``` Warning: com.jetbrains.JBR: can't find referenced method 'java.lang.Object invokeExact(java.lang.Class,java.lang.Class,java.lang.Class,java.lang.Class,java.util.Map,java.util.function.Function)' in library class java.lang.invoke.MethodHandle Warning: com.jetbrains.JBR: can't find referenced method 'java.lang.Object invokeExact(java.lang.invoke.MethodHandles$Lookup)' in library class java.lang.invoke.MethodHandle <============-> 96% EXECUTING [3s] Warning: there were 2 unresolved references to library class members.aseJars You probably need to update the library versions.-crash-in-the-field (https://www.guardsquare.com/proguard/manual/troubleshooting#unresolvedlibraryclassmember) Unexpected error java.io.IOException: Please correct the above warnings first. ``` During Gradle tests. ## Testing Tests for Gradle plugin pass ## Release Notes ### Fixes - Desktop N/A
1 parent bffb159 commit a5fa04f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

gradle-plugins/compose/src/main/resources/default-compose-desktop-rules.pro

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,4 +106,8 @@
106106
# Please ensure that class is marked as '@Serializable' and that the serialization compiler plugin is applied.
107107
-keep class **$$serializer {
108108
*;
109-
}
109+
}
110+
111+
# org.jetbrains.runtime:jbr-api
112+
-dontwarn com.jetbrains.JBR**
113+
-dontnote com.jetbrains.JBR**

0 commit comments

Comments
 (0)