Skip to content

Conversation

@Goooler
Copy link
Member

@Goooler Goooler commented Jun 26, 2025

As org.apache.tools.zip.ZipOutputStream is exposed in the public APIs:

public class com/github/jengelman/gradle/plugins/shadow/transformers/DontIncludeResourceTransformer : com/github/jengelman/gradle/plugins/shadow/transformers/ResourceTransformer {
	public fun modifyOutputStream (Lorg/apache/tools/zip/ZipOutputStream;Z)V
	...
}

View the scope changes:

diff --color=auto -r before/shadow-gradle-plugin-9.0.0-SNAPSHOT.module after/shadow-gradle-plugin-9.0.0-SNAPSHOT.module
27a28,36
>       "dependencies": [
>         {
>           "group": "org.apache.ant",
>           "module": "ant",
>           "version": {
>             "requires": "1.10.15"
>           }
>         }
>       ],
85,91d93
<           "group": "org.apache.ant",
<           "module": "ant",
<           "version": {
<             "requires": "1.10.15"
<           }
<         },
<         {
137a140,146
>           }
>         },
>         {
>           "group": "org.apache.ant",
>           "module": "ant",
>           "version": {
>             "requires": "1.10.15"
diff --color=auto -r before/shadow-gradle-plugin-9.0.0-SNAPSHOT.pom after/shadow-gradle-plugin-9.0.0-SNAPSHOT.pom
40c40
<       <scope>runtime</scope>
---
>       <scope>compile</scope>

Closes #1487.


  • CHANGELOG's "Unreleased" section has been updated, if applicable.

As `org.apache.tools.zip.ZipOutputStream` is exposed in the public APIs:

```api
public class com/github/jengelman/gradle/plugins/shadow/transformers/DontIncludeResourceTransformer : com/github/jengelman/gradle/plugins/shadow/transformers/ResourceTransformer {
	public fun modifyOutputStream (Lorg/apache/tools/zip/ZipOutputStream;Z)V
	...
}
```

View the scope changes:

```diff
diff --color=auto -r before/shadow-gradle-plugin-9.0.0-SNAPSHOT.module after/shadow-gradle-plugin-9.0.0-SNAPSHOT.module
27a28,36
>       "dependencies": [
>         {
>           "group": "org.apache.ant",
>           "module": "ant",
>           "version": {
>             "requires": "1.10.15"
>           }
>         }
>       ],
85,91d93
<           "group": "org.apache.ant",
<           "module": "ant",
<           "version": {
<             "requires": "1.10.15"
<           }
<         },
<         {
137a140,146
>           }
>         },
>         {
>           "group": "org.apache.ant",
>           "module": "ant",
>           "version": {
>             "requires": "1.10.15"
diff --color=auto -r before/shadow-gradle-plugin-9.0.0-SNAPSHOT.pom after/shadow-gradle-plugin-9.0.0-SNAPSHOT.pom
40c40
<       <scope>runtime</scope>
---
>       <scope>compile</scope>
```
@Goooler Goooler requested a review from Copilot June 26, 2025 07:57
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR exposes the Ant dependency (org.apache.ant:ant:1.10.15) in compile scope so that ZipOutputStream types used in public APIs are available to consumers.

  • Changed Maven POM scope for Ant from runtime to compile.
  • Updated module metadata to include Ant under compile dependencies.
  • Added changelog entry for the scope change.

@Goooler Goooler changed the title Expose Ant as compile scope Expose Ant as compile scope Jun 26, 2025
@Goooler Goooler enabled auto-merge (squash) June 26, 2025 07:58
@Goooler Goooler merged commit 8eeb64e into main Jun 26, 2025
10 checks passed
@Goooler Goooler deleted the g/20250626/api-for-ant branch June 26, 2025 08:06
Goooler added a commit that referenced this pull request Jun 26, 2025
(cherry picked from commit 8eeb64e)
dongjoon-hyun added a commit to apache/spark-kubernetes-operator that referenced this pull request Jan 20, 2026
### What changes were proposed in this pull request?

This PR aims to upgrade `com.gradleup.shadow` to 8.3.9.

### Why are the changes needed?

To bring the latest bug fixed versions.
- https://github.com/GradleUp/shadow/releases/tag/8.3.9
  - GradleUp/shadow#1579
- https://github.com/GradleUp/shadow/releases/tag/8.3.8
  - GradleUp/shadow#1493
  - GradleUp/shadow#1488
- https://github.com/GradleUp/shadow/releases/tag/8.3.7
  - GradleUp/shadow#1470

### Does this PR introduce _any_ user-facing change?

No.

### How was this patch tested?

Pass the CIs.

### Was this patch authored or co-authored using generative AI tooling?

No.

Closes #469 from dongjoon-hyun/SPARK-55102.

Authored-by: Dongjoon Hyun <dongjoon@apache.org>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Ant should be api, not implementation dependency

2 participants