From a97518a90342e7ff532aef568c30ed80885e4a87 Mon Sep 17 00:00:00 2001 From: Ilya Kirillov Date: Thu, 18 Jan 2024 16:53:55 +0100 Subject: [PATCH] [kapt] fix KAPT tests failing with `ClassNotFoundException: com.intellij.openapi.roots.ContentIterator` The failing tests are in `org.jetbrains.kotlin.kapt.cli.tes.Kapt4ToolIntegrationTestGenerated` --- prepare/compiler/compiler.pro | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/prepare/compiler/compiler.pro b/prepare/compiler/compiler.pro index 7df1d7cb851..6dd62adae0a 100644 --- a/prepare/compiler/compiler.pro +++ b/prepare/compiler/compiler.pro @@ -240,6 +240,13 @@ public static java.lang.String getJarPathForClass(java.lang.Class); } +-keep class com.intellij.openapi.roots.ContentIterator { *; } + +-keepclassmembers class com.intellij.openapi.vfs.VfsUtilCore { + public static boolean iterateChildrenRecursively(com.intellij.openapi.vfs.VirtualFile,com.intellij.openapi.vfs.VirtualFileFilter,com.intellij.openapi.roots.ContentIterator); +} + + -keepclassmembers class com.intellij.util.PathUtil { public static java.lang.String getJarPathForClass(java.lang.Class); }