Skip to content

Improve CI Java setup and update Maven dependencies#122

Merged
mercyblitz merged 6 commits into
microsphere-projects:release-1.xfrom
mercyblitz:dev-1.x
May 21, 2026
Merged

Improve CI Java setup and update Maven dependencies#122
mercyblitz merged 6 commits into
microsphere-projects:release-1.xfrom
mercyblitz:dev-1.x

Conversation

@mercyblitz
Copy link
Copy Markdown
Contributor

This pull request updates dependencies and improves the Maven build and publish workflows. The main changes include upgrading several version numbers in pom.xml files and adjusting the GitHub Actions workflows for more consistent and efficient Java setup and Maven usage.

Dependency and version updates:

  • Upgraded the parent POM version in pom.xml from 0.2.7 to 0.2.9.
  • Updated microsphere-spring-boot.version to 0.1.13 and junit-jupiter.version to 5.14.4 in microsphere-spring-cloud-parent/pom.xml.

GitHub Actions workflow improvements:

  • In .github/workflows/maven-build.yml, changed the Java setup step to use the correct matrix variable, enabled Maven caching, and switched from ./mvnw to the system mvn command for building.
  • In .github/workflows/maven-publish.yml, removed Maven caching from the setup-java step and switched from mvn to ./mvnw for publishing, ensuring the wrapper is used for consistency.

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.
@sonarqubecloud
Copy link
Copy Markdown

@codecov
Copy link
Copy Markdown

codecov Bot commented May 21, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
see 2 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@mercyblitz mercyblitz merged commit 7e5421b into microsphere-projects:release-1.x May 21, 2026
17 checks passed
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.

1 participant