Gradle 9 and configuration cache compatibility work#225
Merged
labkey-susanh merged 26 commits intodevelopfrom Nov 5, 2024
Merged
Gradle 9 and configuration cache compatibility work#225labkey-susanh merged 26 commits intodevelopfrom
labkey-susanh merged 26 commits intodevelopfrom
Conversation
…eprecated `fileCollection` method
This was referenced Nov 4, 2024
labkey-adam
approved these changes
Nov 4, 2024
| finally | ||
| { | ||
| if (writer != null) | ||
| writer.close() |
Contributor
There was a problem hiding this comment.
Just curious: does Groovy have try-with-resources?
Contributor
Author
There was a problem hiding this comment.
Last time I tried, it did not, but I can try again.
Contributor
There was a problem hiding this comment.
I don't really care, it just seems funny to see this pattern these days
Contributor
Author
There was a problem hiding this comment.
Seems like it is now supported. (The lag in language support is certainly one of the reasons I regret having chosen Groovy in the first place. Someday maybe we can make the switch to Java (which Gradle itself did a long time ago).)
Contributor
There was a problem hiding this comment.
I would certainly support that change! Could a Groovy --> Java migration happen incrementally? Or is it all or nothing?
Contributor
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Rationale
The
stageModulestask has been using a deprecated method for collecting the modules to be staged. This method is scheduled for removal in Gradle 9.0, so the main goal of this PR is to update that method to remove the use of said method.I've also taken this opportunity to update more of the tasks to be compatible with the configuration cache and remove one task that is no longer very useful and not compatible with the cache.
Related Pull Requests
Changes
checkModuleTaskstasks, added to get us through a transition from plugins being declared more centrallystageModulesto remove use of deprecatedfileCollectionmethod and make compatible with configuration cacheStagingExtensionjsp2Javacompatible with configuration cachecopyExternalLibstask as not compatible with configuration cache for nowServerSideJStask for configuration cache compatibilityDeployAppand relatives for better configuration cache compatibilityPickDbtask for better configuration cache compatibility