Improve CI Java setup and update Maven dependencies#122
Merged
Conversation
Update GitHub Actions workflows to improve Java/Maven configuration: - .github/workflows/maven-build.yml: rename the step title to "Setup Java", use matrix.java, enable actions/setup-java maven cache, and switch the build step to use the system mvn command. - .github/workflows/maven-publish.yml: remove server credential and cache inputs from the setup-java step, and switch the publish step to use the Maven wrapper (./mvnw). These changes standardize variable names, enable the setup-java maven cache for faster builds, and adjust when the wrapper vs. system Maven is used. Credentials and publishing behavior should be managed outside the setup step as needed.
server-id: ossrh
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
Update pom.xml to use io.github.microsphere-projects:microsphere-build parent version 0.2.9 (was 0.2.7) to pick up the latest build configuration and dependency management changes.
Update junit-jupiter.version in the parent POM from 5.14.3 to 5.14.4 to use the latest JUnit 5 patch release for project tests.
Update microsphere-spring-boot.version in microsphere-spring-cloud-parent/pom.xml from 0.1.12 to 0.1.13 so modules inheriting this parent use the newer release.
|
Codecov Report✅ All modified and coverable lines are covered by tests. 🚀 New features to boost your workflow:
|
7e5421b
into
microsphere-projects:release-1.x
17 checks passed
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.



This pull request updates dependencies and improves the Maven build and publish workflows. The main changes include upgrading several version numbers in
pom.xmlfiles and adjusting the GitHub Actions workflows for more consistent and efficient Java setup and Maven usage.Dependency and version updates:
pom.xmlfrom0.2.7to0.2.9.microsphere-spring-boot.versionto0.1.13andjunit-jupiter.versionto5.14.4inmicrosphere-spring-cloud-parent/pom.xml.GitHub Actions workflow improvements:
.github/workflows/maven-build.yml, changed the Java setup step to use the correct matrix variable, enabled Maven caching, and switched from./mvnwto the systemmvncommand for building..github/workflows/maven-publish.yml, removed Maven caching from the setup-java step and switched frommvnto./mvnwfor publishing, ensuring the wrapper is used for consistency.