SVM (SubstrateVM) compile configuration classes must be included within the cli jar to prevent downstream native-image builds from failing. Fat JARs cannot be used with native-image, so these classes can still safely be excluded here.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
## 📋 Pull Request Information
**Original PR:** https://github.com/apple/pkl/pull/914
**Author:** [@sgammon](https://github.com/sgammon)
**Created:** 1/28/2025
**Status:** ✅ Merged
**Merged:** 1/30/2025
**Merged by:** [@bioball](https://github.com/bioball)
**Base:** `main` ← **Head:** `fix/nativeimage-build`
---
### 📝 Commits (1)
- [`5dbdbe9`](https://github.com/apple/pkl/commit/5dbdbe9bb8c1cecc1fac24aa55c26d1bc1ad18e9) fix: downstream `native-image` builds
### 📊 Changes
**2 files changed** (+12 additions, -14 deletions)
<details>
<summary>View changed files</summary>
📝 `buildSrc/src/main/kotlin/pklFatJar.gradle.kts` (+4 -1)
📝 `pkl-cli/pkl-cli.gradle.kts` (+8 -13)
</details>
### 📄 Description
## Summary
SVM (SubstrateVM) compile configuration classes must be included within the `cli` jar to prevent downstream `native-image` builds from failing. Fat JARs cannot be used with `native-image`, so these classes can still safely be excluded here.
Fixes and closes apple/pkl#907
## Changelog
- fix: don't exclude svm classes from `cli` jar
- fix: include svm exclusions in fatjar config
---
<sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
📋 Pull Request Information
Original PR: https://github.com/apple/pkl/pull/914
Author: @sgammon
Created: 1/28/2025
Status: ✅ Merged
Merged: 1/30/2025
Merged by: @bioball
Base:
main← Head:fix/nativeimage-build📝 Commits (1)
5dbdbe9fix: downstreamnative-imagebuilds📊 Changes
2 files changed (+12 additions, -14 deletions)
View changed files
📝
buildSrc/src/main/kotlin/pklFatJar.gradle.kts(+4 -1)📝
pkl-cli/pkl-cli.gradle.kts(+8 -13)📄 Description
Summary
SVM (SubstrateVM) compile configuration classes must be included within the
clijar to prevent downstreamnative-imagebuilds from failing. Fat JARs cannot be used withnative-image, so these classes can still safely be excluded here.Fixes and closes apple/pkl#907
Changelog
clijar🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.