ci: cache Maven dependencies in Java quickstart validation#1313
Open
javier-aliaga wants to merge 2 commits into
Open
ci: cache Maven dependencies in Java quickstart validation#1313javier-aliaga wants to merge 2 commits into
javier-aliaga wants to merge 2 commits into
Conversation
Enable the built-in Maven cache on setup-java so the ~30 pom.xml files across the Java quickstarts no longer re-download artifacts from Maven Central on every CI run. Also bump action versions and switch the JDK distribution off the deprecated 'adopt' value (required by setup-java@v4): - actions/checkout@v2 -> @v4 - actions/setup-java@v3 -> @v4 - distribution: 'adopt' -> 'temurin' Fixes dapr#1312 Signed-off-by: Javier Aliaga <javier@diagrid.io>
Set MAVEN_ARGS at the job level so every Maven invocation (executed via mechanical-markdown from quickstart READMEs) runs with --no-transfer-progress, silencing the noisy "Downloading from central" and "Progress: ..." lines. Build output is preserved so failures stay debuggable. MAVEN_ARGS is honored by Maven 3.9+; ubuntu-latest runners ship 3.9.x. Signed-off-by: Javier Aliaga <javier@diagrid.io>
e79bcc8 to
ed2d63f
Compare
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.
Description
Enable the built-in Maven cache on setup-java so the ~30 pom.xml files across the Java quickstarts no longer re-download artifacts from Maven Central on every CI run.
Also bump action versions and switch the JDK distribution off the deprecated 'adopt' value (required by setup-java@v4):
Issue reference
We strive to have all PRs being opened based on an issue, where the problem or feature have been discussed prior to implementation.
Please reference the issue this PR will close: #1312
Checklist
Please make sure you've completed the relevant tasks for this PR, out of the following list: