Downstream native-image embedders are broken #266

Closed
opened 2025-12-30 01:22:58 +01:00 by adam · 0 comments
Owner

Originally created by @sgammon on GitHub (Jan 26, 2025).

258eda8630/pkl-cli/pkl-cli.gradle.kts (L87-L88)

This exclusion drops key classes from the pkl-cli JAR which are needed to build Pkl native binaries. While the comment is correct, these classes are inert for JVM use at runtime, embedders will Have A Bad Time if these classes are excluded from a native-image classpath downstream, when using the pkl-cli-* JAR.

These classes can be dropped from fat JARs, because shading with Truffle is only supported on JVM anyway.

Originally created by @sgammon on GitHub (Jan 26, 2025). https://github.com/apple/pkl/blob/258eda86301c2daee548395aed7fdd028a33e39b/pkl-cli/pkl-cli.gradle.kts#L87-L88 This exclusion drops key classes from the `pkl-cli` JAR which are needed to build Pkl native binaries. While the comment is correct, these classes are inert for JVM use at runtime, embedders will Have A Bad Time if these classes are excluded from a `native-image` classpath downstream, when using the `pkl-cli-*` JAR. These classes can be dropped from fat JARs, because shading with Truffle is only supported on JVM anyway.
adam closed this issue 2025-12-30 01:22:58 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/pkl#266