This is an automated email from the ASF dual-hosted git repository.
slachiewicz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-shade-plugin.git
The following commit(s) were added to refs/heads/master by this push:
new 369d3fa Exclude Java 25
369d3fa is described below
commit 369d3fa246d2e5144f46f13bc2d8c35b8758479a
Author: Sylwester Lachiewicz <[email protected]>
AuthorDate: Sun Nov 16 02:18:37 2025 +0100
Exclude Java 25
---
.github/workflows/maven-verify.yml | 3 ++-
.../java/org/apache/maven/plugins/shade/filter/MinijarFilter.java | 4 +++-
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/.github/workflows/maven-verify.yml
b/.github/workflows/maven-verify.yml
index 1204718..243410d 100644
--- a/.github/workflows/maven-verify.yml
+++ b/.github/workflows/maven-verify.yml
@@ -25,4 +25,5 @@ jobs:
name: Verify
uses: apache/maven-gh-actions-shared/.github/workflows/maven-verify.yml@v4
with:
- ff-jdk: "21"
+ matrix-exclude: '[ {"jdk": "25"} ]'
+
diff --git
a/src/main/java/org/apache/maven/plugins/shade/filter/MinijarFilter.java
b/src/main/java/org/apache/maven/plugins/shade/filter/MinijarFilter.java
index bfc0122..c23e5c2 100644
--- a/src/main/java/org/apache/maven/plugins/shade/filter/MinijarFilter.java
+++ b/src/main/java/org/apache/maven/plugins/shade/filter/MinijarFilter.java
@@ -24,6 +24,7 @@ import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
+import java.nio.file.Files;
import java.util.Collections;
import java.util.Enumeration;
import java.util.HashSet;
@@ -101,7 +102,8 @@ public class MinijarFilter implements Filter {
if (artifactFile != null) {
Clazzpath cp = new Clazzpath();
- ClazzpathUnit artifactUnit = cp.addClazzpathUnit(new
FileInputStream(artifactFile), project.toString());
+ ClazzpathUnit artifactUnit =
+
cp.addClazzpathUnit(Files.newInputStream(artifactFile.toPath()),
project.toString());
for (Artifact dependency : project.getArtifacts()) {
addDependencyToClasspath(cp, dependency);