mirror of
https://github.com/apple/pkl.git
synced 2026-01-11 22:30:54 +01:00
[PR #722] [MERGED] Fix build performance issues of spotless tasks #695
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/722
Author: @odenix
Created: 10/22/2024
Status: ✅ Merged
Merged: 10/22/2024
Merged by: @bioball
Base:
main← Head:spotless📝 Commits (1)
65eee91Fix build performance issues of spotless tasks📊 Changes
2 files changed (+8 additions, -7 deletions)
View changed files
📝
buildSrc/src/main/kotlin/pklAllProjects.gradle.kts(+6 -5)📝
buildSrc/src/main/kotlin/pklJavaLibrary.gradle.kts(+2 -2)📄 Description
Motivation:
Spotless tasks take minutes instead of seconds to complete. This greatly slows down
gw spotlessApply,gw check, andgw build.Changes:
target()).targetExclude()).Result:
Spotless tasks complete in seconds instead of minutes. As a concrete example, repeated invocation of
gw spotlessApplycompletes in 2 instead of 122 seconds on my laptop.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.