gradle-intellij-plugin didn't pack the jar generated by proguard in the zip file.

Answered

Hi, I'm using a build.gradle.kts like https://github.com/beansoft/intellij-platform-plugin-template-proguard/blob/main/build.gradle.kts
proguard is triggered before prepareSandbox then copy back and overwrite the jar file "build/libs/${rootProject.name}-${properties("pluginVersion")}.jar"
and it runs without error. But after the buildPlugin had finished successfully. I unzipped the packaged plugin, there is a file named "instrumented-${rootProject.name}-${properties("pluginVersion")}.jar" and it has not been obfuscated.
Why is that happened? And How to solve it?
Thank you very much for any help!!

0
1 comment

You're not supposed to obfuscate the base Jar file but the instrumented one instead. Please rely on the output of the instrumentedJar task instead of jar.

0

Please sign in to leave a comment.