Skip to content

Ant should be api, not implementation dependency #1487

@vlsi

Description

@vlsi

Expected and Results

Currently com.github.jengelman.gradle.plugins.shadow.transformers.Transformer is a public interface, and it has modifyOutputStream(os: org.apache.tools.zip.ZipOutputStream, preserveFileTimestamps: Boolean) method which exposes ant interface tools.zip.ZipOutputStream.

I suggest ant should be on the api scope, so the consumers can implement Transformer:

implementation(libs.apache.ant)

An alternative option would be replacing the parameter with java.util.zip.ZipOutputStream so ant is not needed.

Related environment and versions

No response

Reproduction steps

No response

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions