Skip to content

Avoid running the VerifyDependenciesVersionsTask and CheckExpecedBranchVersionTask when inputs are stable #15713

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

xyloman
Copy link
Contributor

@xyloman xyloman commented Aug 30, 2024

Each plugin has been updated to use the local build cache / avoid unnecessary work. To accomplish this, the inputs for each task will be computed when the plugin runs instead of at configuration time. This allows, for the inputs to be properly fingerprinted by Gradle. In addition, each task now will produce an output file.

  • In the case of the VerifyDependenciesVersionsTask These changes have avoided a call to the Central Maven Repository on each build saving time and network calls.
  • In the case of the CheckExpectedBranchVersionTask savings are less but semantically ensure that the task is only executed when the branch name of the git repository changes—reducing the number of functions that run on every incremental build.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Aug 30, 2024
@xyloman xyloman changed the title Avoid running the VerifyDependenciesVersionsPlug and CheckExpecedBranchVersionPlugin when inputs are stable Avoid running the VerifyDependenciesVersionsTask and CheckExpecedBranchVersionTask when inputs are stable Aug 30, 2024
@marcusdacoregio marcusdacoregio self-assigned this Sep 2, 2024
@marcusdacoregio marcusdacoregio added in: build An issue in the build type: task A general task and removed status: waiting-for-triage An issue we've not yet triaged labels Sep 2, 2024
marcusdacoregio pushed a commit that referenced this pull request Sep 2, 2024
@marcusdacoregio
Copy link
Contributor

marcusdacoregio commented Sep 2, 2024

Thank you very much @xyloman, this has been merged into 6.2.x, 6.3.x and main via 69231c5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: build An issue in the build type: task A general task
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants