Problem details:
After upgrading, ProGuard reports that the input doesn’t contain any classes and suggests checking the -injars options. The configuration and inputs have not changed otherwise.
Request:
Has anyone encountered this issue after upgrading to version 2.8.0? Any suggestions or known fixes would be appreciated.
my config above. and same issue by your config as well. just guessing that some libs may confilict maybe. will take some time to figure out. and thanks for your help!
The new version keeps pluginModule() JARs separate instead of bundling them.
// Include root project's composedJar (contains plugin.xml)
injars(composedJar.flatMap { it.archiveFile })
// Include all submodule composedJars (contain actual classes)
// In intellij-platform plugin 2.10+, pluginModule() JARs are kept separate
project(":intellij-plugin").tasks.named<ComposedJarTask>("composedJar").let {
dependsOn(it)
injars(it.flatMap { jar -> jar.archiveFile })
}
project(":extensions:git").tasks.named<ComposedJarTask>("composedJar").let {
dependsOn(it)
injars(it.flatMap { jar -> jar.archiveFile })
}
project(":extensions:java").tasks.named<ComposedJarTask>("composedJar").let {
dependsOn(it)
injars(it.flatMap { jar -> jar.archiveFile })
}
project(":extensions:kotlin").tasks.named<ComposedJarTask>("composedJar").let {
dependsOn(it)
injars(it.flatMap { jar -> jar.archiveFile })
}
Root cause: In intellij-platform plugin 2.10.5, when using pluginModule(), each submodule’s JAR is kept separate. The root project’s composedJar only contains metadata (plugin.xml), not the actual classes. In 2.5.0, it bundled everything together.
Fix applied (build.gradle.kts):
Added import for ComposedJarTask
Modified the ProGuard task to include all submodule composedJar outputs:
// Use pluginComposedModule for intellij-plugin to bundle into main JAR
// This allows xi:include to resolve META-INF files across modules
// https://github.com/JetBrains/intellij-platform-gradle-plugin/blob/main/CHANGELOG.md
// 2.7.0 - 2025-07-26
// Breaking Changes
// pluginModule(Dependency) dependency helper no longer bundles module into the main plugin jar, use pluginComposedModule(Dependency) instead.
pluginComposedModule(implementation(project(":intellij-plugin")))
pluginComposedModule(implementation(project(":extensions:git")))
pluginComposedModule(implementation(project(":extensions:kotlin")))
pluginComposedModule(implementation(project(":extensions:java")))