Skip to content

Commit bf5057f

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 #907 Signed-off-by: Sam Gammon <sam@elide.dev>
1 parent 258eda8 commit bf5057f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

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

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

8181
configurations = listOf(project.configurations.runtimeClasspath.get())
8282

83+
// not required at runtime / fat JARs can't be used in native-image builds anyway
84+
exclude("org/pkl/cli/svm/**")
85+
8386
exclude("META-INF/maven/**")
8487
exclude("META-INF/upgrade/**")
8588
exclude("META-INF/versions/19/**")

pkl-cli/pkl-cli.gradle.kts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,6 @@ dependencies {
8383

8484
tasks.jar {
8585
manifest { attributes += mapOf("Main-Class" to "org.pkl.cli.Main") }
86-
87-
// not required at runtime
88-
exclude("org/pkl/cli/svm/**")
8986
}
9087

9188
tasks.javadoc { enabled = false }

0 commit comments

Comments
 (0)