Skip to content

Allow using file trees of JARs together with the configuration cache#1441

Merged
Goooler merged 4 commits intoGradleUp:mainfrom
wolfs:cc/fix-filetree
May 28, 2025
Merged

Allow using file trees of JARs together with the configuration cache#1441
Goooler merged 4 commits intoGradleUp:mainfrom
wolfs:cc/fix-filetree

Conversation

@wolfs
Copy link
Copy Markdown
Contributor

@wolfs wolfs commented May 27, 2025

We are adding JARs from a directory that is built by a task to the ShadowJar by using includedDependencies. That doesn't seem to work when using the configuration cache, since the contents of the directory are evaluated at configuration time, causing them always to be empty.

This PR fixes that by doing the actual resolution as late as in the task action, not when the includedZipTrees provider is being stored in the configuration cache.


  • CHANGELOG's "Unreleased" section has been updated, if applicable.

@wolfs wolfs force-pushed the cc/fix-filetree branch from d135c69 to 8b5eff9 Compare May 27, 2025 21:09
We are adding JARs from a directory that is built by a task to the `ShadowJar` by using `includedDependencies`. That doesn't seem to work when using the configuration cache, since the contents of the directory are evaluated at configuration time, causing them always to be empty.

This PR fixes that by doing the actual resolution as late as in the task action, not when the `includedZipTrees` provider is being stored in the configuration cache.
@wolfs wolfs force-pushed the cc/fix-filetree branch from 8b5eff9 to 4ff09a1 Compare May 27, 2025 21:13
@Goooler Goooler merged commit aa0b930 into GradleUp:main May 28, 2025
9 checks passed
@wolfs
Copy link
Copy Markdown
Contributor Author

wolfs commented May 28, 2025

@Goooler Thank you for merging this so quickly! Any idea when you are going to do another release that includes the changes?

@Goooler
Copy link
Copy Markdown
Member

Goooler commented May 28, 2025

It will be out in a few hours.

@wolfs wolfs deleted the cc/fix-filetree branch May 28, 2025 21:22
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