intellij-haskforce
intellij-haskforce copied to clipboard
Adding ProGuard
The plugin archive is topping 30 MB and counting. It increased by about 20 MB simply by adding Scala to the project; so I'm betting that there are just a lot of unused classes getting shipped with the jars.
Once we move to Gradle (https://github.com/carymrobbins/intellij-haskforce/issues/328) adding ProGuard should be the next logical step.
There is an example Scala config in the ProGuard manual - https://www.guardsquare.com/en/proguard/manual/examples#scala
We should also test the final archive carefully to ensure that necessary classes are getting shipped. There doesn't appear to be any IntelliJ plugins that use ProGuard, so we'll need to be diligent and confirm everything still works at runtime when running in a real IntelliJ instance. This may even be possible to do on CI; however, that would mean a separate build target for tests to ensure we are only including IntelliJ and our plugin archive.