Skip to content

Commit

Permalink
Make Beam expansion service shadowJar multi-release so it processes m…
Browse files Browse the repository at this point in the history
…ulti-release dependencies correctly
  • Loading branch information
Abacn committed Dec 31, 2024
1 parent 18ec331 commit 94f3e01
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1625,6 +1625,7 @@ class BeamModulePlugin implements Plugin<Project> {
from "${project.rootProject.projectDir}/LICENSE"
from "${project.rootProject.projectDir}/NOTICE"
}

} << configuration.shadowClosure)

// Always configure the shadowTestJar archiveClassifier and merge service files.
Expand Down
3 changes: 3 additions & 0 deletions sdks/java/extensions/sql/expansion-service/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,8 @@ task runExpansionService (type: JavaExec) {
}

shadowJar {
manifest {
attributes(["Multi-Release": true])
}
outputs.upToDateWhen { false }
}
3 changes: 3 additions & 0 deletions sdks/java/io/expansion-service/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ configurations.runtimeClasspath {
}

shadowJar {
manifest {
attributes(["Multi-Release": true])
}
mergeServiceFiles()
outputs.upToDateWhen { false }
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,8 @@ task runExpansionService (type: JavaExec) {
}

shadowJar {
manifest {
attributes(["Multi-Release": true])
}
outputs.upToDateWhen { false }
}

0 comments on commit 94f3e01

Please sign in to comment.