-
Notifications
You must be signed in to change notification settings - Fork 342
Upgrade Shadow plugin to 9.4.2 #11730
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
a473f66
d942cbe
1821cc6
8972e3e
8f1ea77
54078f6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| plugins { | ||
| java | ||
| id("com.gradleup.shadow") version "8.3.9" | ||
| alias(libs.plugins.shadow) | ||
| } | ||
|
|
||
| java { | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -34,4 +34,3 @@ tasks.named("shadowJar", ShadowJar) { | |
| tasks.named("jar", Jar) { | ||
| archiveClassifier = 'unbundled' | ||
| } | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -17,7 +17,8 @@ tasks.named("jar", Jar) { | |
| } | ||
|
|
||
| tasks.named("shadowJar", ShadowJar) { | ||
| configurations = [project.configurations.runtimeClasspath] | ||
| configurations.add(project.configurations.named('runtimeClasspath')) | ||
| duplicatesStrategy = DuplicatesStrategy.INCLUDE | ||
| mergeServiceFiles() | ||
| append 'META-INF/spring.handlers' | ||
| append 'META-INF/spring.schemas' | ||
|
|
@@ -26,6 +27,15 @@ tasks.named("shadowJar", ShadowJar) { | |
| paths = ['META-INF/spring.factories'] | ||
| mergeStrategy = "append" | ||
| } | ||
| filesNotMatching([ | ||
| 'META-INF/services/**', | ||
| 'META-INF/spring.handlers', | ||
| 'META-INF/spring.schemas', | ||
| 'META-INF/spring.tooling', | ||
| 'META-INF/spring.factories', | ||
| ]) { | ||
| duplicatesStrategy = DuplicatesStrategy.EXCLUDE | ||
| } | ||
|
Comment on lines
+30
to
+38
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Q: this pattern looks like repeating several times, any ideas how to reuse code?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For now I think it's fine, this is happening in smoke tests because these projects are using the main build. |
||
| } | ||
|
|
||
| dependencies { | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.