Skip to content

Update PurgeArtifacts task for configuration cache and more complete clean up - #233

Merged
labkey-susanh merged 7 commits into
developfrom
fb_moreConfigCache
Aug 4, 2025
Merged

Update PurgeArtifacts task for configuration cache and more complete clean up#233
labkey-susanh merged 7 commits into
developfrom
fb_moreConfigCache

Conversation

@labkey-susanh

Copy link
Copy Markdown
Contributor

Rationale

The PurgeArtifacts task was walking through the set of gradle projects to find what needed to be purged, which is fine until we archive repositories so they are no longer needed in a typical enlistment. This implementation, because it used project.allprojects, is also not compatible with Gradle's configuration cache. This PR changes the implementation to read the list of projects from a file and also will read a list of versions from a file to make it easier to purge several versions.

Related Pull Requests

  • N/A. This is a task that is not run on TeamCity, so testing there is not possible/necessary. I've used this to good end locally for several recent purges.

Changes

  • Update PurgeArtifacts with more configuration cache-friendly properties
  • Update logic to read multiple options from files instead of single options

Comment thread gradle.properties

commonsIoVersion=2.18.0
commonsLang3Version=3.17.0
commonsLang3Version=3.18.0

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider updating all the other dependencies... I believe Commons IO, Commons Text, HttpClient, HttpCore, Jackson, and Json all have newer versions.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done. Everything except artifactoryPluginVersion, where the latest version requires Gradle 9.

@labkey-susanh
labkey-susanh merged commit ebd0585 into develop Aug 4, 2025
3 checks passed
@labkey-susanh
labkey-susanh deleted the fb_moreConfigCache branch August 4, 2025 15:14
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.

3 participants