Skip to content

Make build work with Gradle config-cache and project isolation#891

Merged
snazy merged 9 commits into
projectnessie:mainfrom
snazy:build-improve
Jul 8, 2026
Merged

Make build work with Gradle config-cache and project isolation#891
snazy merged 9 commits into
projectnessie:mainfrom
snazy:build-improve

Conversation

@snazy

@snazy snazy commented Jul 8, 2026

Copy link
Copy Markdown
Member

This change adopts the build of the project to be fully compliant to Gradle's configuration cache and project isolation.

Using the configuration-cache is effectively prevented in CI as it can persist configuration inputs, which may include sensitive information.

The removal of the symlinked source directories had to be replaced with Sync tasks to prevent Calculating task graph as configuration cache cannot be reused because an input to unknown location has changed. warnings / hints that config-cache isn't effective.

Developers can add this line into the non-Git-tracked .env file to enable the config cache and project isolation locally:

GRADLE_OPTS='-Dorg.gradle.configuration-cache=true -Dorg.gradle.unsafe.isolated-projects=true'

Fixing the line-ending via spotless to UNIX is necessary, because Spotless' default is GIT_ATTRIBUTES_FAST_ALLSAME, which reads repo config, user/system config, .git/info/attribtues and more. Neither is config-cache-friendly - and leads to non-reused config-cache entries.

@snazy snazy merged commit 58694fb into projectnessie:main Jul 8, 2026
3 checks passed
@snazy snazy deleted the build-improve branch July 8, 2026 15:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants