chore(sidecar): bump maestro to 2.4.0, exclude graalvm from fat JAR

Maestro 2.4.0 still ships grpc-netty:1.50.2 so the grpc transport
resolution strategy is kept. GraalVM JS is excluded: unused by our
sidecar and causes shadow JAR expansion errors (pom treated as zip).
This commit is contained in:
pj committed 2026-04-25 18:41:25 +07:00
1 parent b0c2019b3d
commit 334f571111
1 file changed
+10 -4
+10 -4
View File
@@ -21,11 +21,12 @@ kotlin {
val grpcVersion = "1.68.0" val grpcVersion = "1.68.0"
val protobufVersion = "3.25.5" val protobufVersion = "3.25.5"
val maestroVersion = "1.40.0" val maestroVersion = "2.4.0"
// Maestro pulls in grpc-netty:1.50.2 and grpc-okhttp:1.50.2 which were compiled // Maestro 2.4.0 still declares grpc-netty:1.50.2 and grpc-okhttp:1.50.2 which
// against AbstractManagedChannelImplBuilder that was removed in grpc-core 1.64+. // were compiled against AbstractManagedChannelImplBuilder removed in grpc-core 1.64+.
// Force them to match the grpc-core version we resolve to. // Force them to the version we pin so they stay binary-compatible.
// Also exclude GraalVM JS — not used by our sidecar and causes shadow JAR expansion errors.
configurations.all { configurations.all {
resolutionStrategy.eachDependency { resolutionStrategy.eachDependency {
if (requested.group == "io.grpc" && if (requested.group == "io.grpc" &&
@@ -34,6 +35,10 @@ configurations.all {
because("align grpc transport with grpc-core version") because("align grpc transport with grpc-core version")
} }
} }
exclude(group = "org.graalvm.js")
exclude(group = "org.graalvm.sdk")
exclude(group = "org.graalvm.regex")
exclude(group = "org.graalvm.truffle")
} }
dependencies { dependencies {
@@ -94,6 +99,7 @@ application {
// depend on `version`. // depend on `version`.
tasks.named<com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar>("shadowJar") { tasks.named<com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar>("shadowJar") {
archiveFileName.set("sidecar-all.jar") archiveFileName.set("sidecar-all.jar")
exclude("META-INF/*.SF", "META-INF/*.DSA", "META-INF/*.RSA")
} }
// JUnit 4 (vintage) for the gRPC GrpcCleanupRule + JUnit 5 (jupiter) // JUnit 4 (vintage) for the gRPC GrpcCleanupRule + JUnit 5 (jupiter)