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!!
Please sign in to leave a 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.
Jakub Chrzanowski This is my proguard task:
And the prepareSandbox:
But still, the chosen jar in the ZIP file is the normal one!