Skip to content

Commit b7b2525

Browse files
Update dependency com.gradleup.shadow to v9 (#4760)
* Update dependency com.gradleup.shadow to v9 * Fix missing shadow runtimes on Gradle 9 Signed-off-by: Alexander Brandes <[email protected]> --------- Signed-off-by: Alexander Brandes <[email protected]> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Alexander Brandes <[email protected]>
1 parent 7123f51 commit b7b2525

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

build.gradle.kts

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,15 @@ subprojects {
101101
}
102102
}
103103

104-
val javaComponent = components["java"] as AdhocComponentWithVariants
105-
javaComponent.withVariantsFromConfiguration(configurations["shadowRuntimeElements"]) {
106-
skip()
104+
afterEvaluate {
105+
val javaComponent = components["java"] as AdhocComponentWithVariants
106+
configurations.findByName("shadowRuntimeElements")?.let { shadowRuntimeElements ->
107+
javaComponent.withVariantsFromConfiguration(shadowRuntimeElements) {
108+
skip()
109+
}
110+
} ?: run {
111+
logger.warn("Configuration 'shadowRuntimeElements' does not exist.")
112+
}
107113
}
108114

109115
signing {

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ vault = "1.7.1"
3333
serverlib = "2.3.7"
3434

3535
# Gradle plugins
36-
shadow = "8.3.9"
36+
shadow = "9.2.2"
3737
grgit = "4.1.1"
3838
spotless = "8.0.0"
3939
publish = "0.34.0"

0 commit comments

Comments
 (0)