mirror of
https://github.com/apple/pkl.git
synced 2026-01-12 06:40:42 +01:00
[PR #409] [MERGED] Enable caching of native image building and test tasks #537
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/apple/pkl/pull/409
Author: @stefanobaghino
Created: 4/8/2024
Status: ✅ Merged
Merged: 4/18/2024
Merged by: @bioball
Base:
main← Head:leverage-build-caching📝 Commits (2)
edcbec4Enable caching of native image building and test tasksdff32c0Update pkl-cli/pkl-cli.gradle.kts📊 Changes
4 files changed (+16 additions, -14 deletions)
View changed files
📝
docs/docs.gradle.kts(+1 -1)📝
pkl-cli/pkl-cli.gradle.kts(+4 -2)📝
pkl-core/pkl-core.gradle.kts(+9 -9)📝
pkl-server/pkl-server.gradle.kts(+2 -2)📄 Description
This pull requests enables caching for the native image building task and improves the caching effectiveness of some of the test tasks in the project.
Exectasks for which caching needs to be enabled explicitly (see docs) as the build tool doesn't have natively have enough information to cache it effectively -- furthermore some steps need to be taken to normalize the classpath (JARs come with an embedded timestamp in their manifest and this needs to be ignored), as well as not rely on absolute pathsAll touched properties got a name to make sure it was easy to find them with Build Scan®.
These issues have been diagnosed using the build validation scripts by Gradle.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.