Skip to content

Commit

Permalink
Exclude module-info.class in Multi-Release folders by default (#1177)
Browse files Browse the repository at this point in the history
  • Loading branch information
Goooler authored Jan 23, 2025
1 parent 897895c commit 91fba91
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/docs/changes/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@

## [Unreleased]

**Added**

- Exclude `module-info.class` in Multi-Release folders by default. ([#1177](https://github.com/GradleUp/shadow/pull/1177))

**Fixed**

- Fix `Log4j2PluginsCacheFileTransformer` not working for merging `Log4j2Plugins.dat` files. ([#1175](https://github.com/GradleUp/shadow/pull/1175))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,8 @@ class JavaPluginTest : BasePluginTest() {
insert("META-INF/a.DSA", "DSA Signature Block")
insert("META-INF/a.RSA", "RSA Signature Block")
insert("META-INF/a.properties", "key=value")
insert("META-INF/versions/9/module-info.class", "module myModuleName {}")
insert("META-INF/versions/16/module-info.class", "module myModuleName {}")
insert("module-info.class", "module myModuleName {}")
}
}.publish()
Expand Down Expand Up @@ -238,6 +240,8 @@ class JavaPluginTest : BasePluginTest() {
"META-INF/a.SF",
"META-INF/a.DSA",
"META-INF/a.RSA",
"META-INF/versions/9/module-info.class",
"META-INF/versions/16/module-info.class",
"module-info.class",
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,8 @@ public abstract class ShadowJavaPlugin @Inject constructor(
"META-INF/*.SF",
"META-INF/*.DSA",
"META-INF/*.RSA",
// module-info.class in Multi-Release folders.
"META-INF/versions/**/module-info.class",
"module-info.class",
)
}
Expand Down

0 comments on commit 91fba91

Please sign in to comment.