Skip to content

Conversation

@mercyblitz
Copy link
Contributor

This pull request introduces improvements to auto-configuration exclusion handling, updates documentation and dependency versions, and adds new tests. The main focus is on enhancing the flexibility and correctness of the ConfigurableAutoConfigurationImportFilter logic, as well as keeping documentation and dependencies up to date.

Auto-configuration exclusion enhancements

  • Refactored ConfigurableAutoConfigurationImportFilter to support both comma-delimited and indexed property formats for excluding auto-configuration classes, using Spring Boot's Binder for robust property binding. This enables exclusions via both microsphere.autoconfigure.exclude=... and array-style properties like microsphere.autoconfigure.exclude[0]=.... [1] [2]
  • Updated related unit tests in ConfigurableAutoConfigurationImportFilterTest to cover new exclusion formats and ensure correctness across multiple property sources and placeholder resolution. [1] [2] [3]

Dependency and documentation updates

  • Updated the version of microsphere-spring in microsphere-spring-boot-parent/pom.xml from 0.2.4 to 0.2.5, and added the Spring Portfolio Milestone Repository for dependency resolution. [1] [2]
  • Updated the README to reflect the latest released versions (0.2.5 and 0.1.5) and removed obsolete badges. [1] [2]

Test coverage improvements

  • Added a new test class SpringBootPropertyConstantsTest to verify the correctness of constant values in SpringBootPropertyConstants.

Minor code consistency improvements

  • Replaced usage of "" with EMPTY_STRING for binder operations in BindableConfigurationBeanBinder for improved clarity and consistency. [1] [2]

Workflow configuration

  • Fixed YAML formatting in the GitHub Actions workflow for Maven builds to ensure correct matrix configuration.

Updated the <revision> property in pom.xml to prepare for the next development iteration.
Updated the microsphere-spring.version property in the parent POM from 0.2.4 to 0.2.5 to use the latest release.
Enhanced ConfigurableAutoConfigurationImportFilter to support exclusion of auto-configuration classes using both comma-delimited and array property syntaxes. Refactored exclusion logic to use Binder for array binding and improved placeholder resolution.
Refactored ConfigurableAutoConfigurationImportFilterTest to improve readability and reuse of test setup. Added new test cases for exclusion via property sources and binder array properties, and consolidated environment and filter initialization.
Introduces a new Maven profile for Spring Boot 4.0 and adds the Spring milestone repository to support pre-release dependencies. Also removes distribution and snapshot repository configuration from the root pom.xml to streamline project setup.
The spring-boot-4.0 profile has been removed from the GitHub Actions Maven build matrix, likely due to incompatibility or lack of support at this time.
Introduces SpringBootPropertyConstantsTest to verify the values of constants in SpringBootPropertyConstants, ensuring correctness and alignment with expected property names.
Replaces the hardcoded empty string with the EMPTY_STRING constant from StringUtils in the binder.bind method for improved code clarity and consistency.
Bumped the latest version numbers for branches 0.2.x and 0.1.x in the README to reflect recent releases.
Deleted badges for average issue resolution time and percentage of open issues from the README. This simplifies the badge section and removes external isitmaintained references.
@sonarqubecloud
Copy link

sonarqubecloud bot commented Nov 7, 2025

@codecov
Copy link

codecov bot commented Nov 7, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.

Files with missing lines Coverage Δ Complexity Δ
...ure/ConfigurableAutoConfigurationImportFilter.java 100.00% <100.00%> (ø) 23.00 <9.00> (+5.00)
...ontext/config/BindableConfigurationBeanBinder.java 100.00% <100.00%> (ø) 3.00 <0.00> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@mercyblitz mercyblitz merged commit 9351dbb into release Nov 7, 2025
32 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.

2 participants