Skip to content

Commit 946de49

Browse files
committed
fix: downstream native-image builds
- fix: don't exclude svm classes from `cli` jar SVM (SubstrateVM) compile configuration classes must be included within the `cli` jar to prevent downstream `native-image` builds from failing. - fix: include svm exclusions in fatjar config Fat JARs cannot be used with `native-image`, so these classes can still safely be excluded here. Fixes and closes apple#907 Cherry-picked from apple#914 Signed-off-by: Sam Gammon <sam@elide.dev>
1 parent 36566be commit 946de49

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

buildSrc/src/main/kotlin/pklFatJar.gradle.kts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@ tasks.shadowJar {
7878

7979
configurations = listOf(project.configurations.runtimeClasspath.get())
8080

81+
// not required at runtime / fat JARs can't be used in native-image builds anyway
82+
exclude("org/pkl/cli/svm/**")
83+
8184
exclude("META-INF/maven/**")
8285
exclude("META-INF/upgrade/**")
8386

0 commit comments

Comments
 (0)