Skip to content

Plugin 2.5 pollutes the classpath with ancient version of commons-compress #1925

Open
@hurricup

Description

@hurricup

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: Camelcade/Perl5-IDEA#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 Camelcade/Perl5-IDEA@96a56c5 (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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions