intellij-platform-gradle-plugin
intellij-platform-gradle-plugin copied to clipboard
Plugin 2.5 pollutes the classpath with ancient version of commons-compress
trafficstars
What happened?
This breaks SonarCloud plugin, because it works in the classpath of the gradle process and requires commons-compress 1.27 (uses new api from there).
Here is the hacky workaround: https://github.com/Camelcade/Perl5-IDEA/pull/2969
Class from the old version is in gradle plugin's jar. Presumably 1.21
Error from sonar:
org.apache.commons.compress.archivers.tar.TarArchiveEntry org.apache.commons.compress.archivers.tar.TarArchiveInputStream.getNextEntry()
^^ this override is missing in the old classfile and present in 1.27
Relevant log output or stack trace
Steps to reproduce
Run sonar task from https://github.com/Camelcade/Perl5-IDEA/commit/96a56c52c9e99ebaa9346ff66531f3a83041007f (you would have to provide a sonarcloud token to reach the fail point)
Gradle IntelliJ Plugin version
2.5.0
Gradle version
8.10
Operating System
Linux
Link to build, i.e. failing GitHub Action job
https://github.com/Camelcade/Perl5-IDEA/actions/runs/14531488154/job/40775843491