Skip to content

feat: add Hexagonal Architecture Spring Rules validation#22

Merged
Arc-E-Tect merged 3 commits into
mainfrom
move-architecture-validator-spring-rules
Jun 11, 2026
Merged

feat: add Hexagonal Architecture Spring Rules validation#22
Arc-E-Tect merged 3 commits into
mainfrom
move-architecture-validator-spring-rules

Conversation

@Arc-E-Tect

Copy link
Copy Markdown
Owner

Summary

This pull request introduces the following changes:

New Features:

  • Added a reusable Hexagonal Architecture validation rule library with Spring support:
    • Implemented ArchUnit tests to enforce dependency rules (e.g., ensuring the domain layer doesn't depend on frameworks).
    • Configured publishing to Maven Central with required metadata and signing.
    • Integrated OWASP dependency scanning and JReleaser for streamlined release management.
  • Created a single-module-spring example project to demonstrate and validate the rule library:
    • Integrated the spring-rules library.
    • Configured the Architecture Validator Gradle plugin for validation purposes.

Additional Notes

This implementation supports fostering cleaner, maintainable architectural patterns in Spring-based projects while modernizing example projects for better clarity and usability.

…example

Introduced a reusable Hexagonal Architecture validation rule library:
- Added ArchUnit tests for enforcing dependency rules in `spring-rules` submodule (e.g., no domain model dependency on frameworks).
- Configured publishing to Maven Central with necessary metadata and signing.
- Enabled OWASP dependency scanning and JReleaser integration.

Created an example `single-module-spring` project demonstrating rule application:
- Configured Architecture Validator Gradle plugin.
- Integrated `spring-rules` library for validation.
…s.versions.toml`

- Replaced direct plugin and dependency versions with aliases from `libs.versions.toml`.
- Updated `build.gradle` to use `alias(libs.plugins)` and `libs.<library>.iff` syntax.
- Added plugin and dependency declarations for `architecture-validator` and Spring in `libs.versions.toml`.
@Arc-E-Tect Arc-E-Tect self-assigned this Jun 11, 2026
@Arc-E-Tect Arc-E-Tect added the enhancement New feature or request label Jun 11, 2026
@Arc-E-Tect Arc-E-Tect merged commit 569dabc into main Jun 11, 2026
8 checks passed
@Arc-E-Tect Arc-E-Tect deleted the move-architecture-validator-spring-rules branch June 11, 2026 22:05
Arc-E-Tect added a commit that referenced this pull request Jun 11, 2026
# [0.4.0](v0.3.4...v0.4.0) (2026-06-11)

### ✨ New and updated features

* add Hexagonal Architecture Spring Rules validation ([#22](#22)) ([569dabc](569dabc)), closes [#22](#22)
* **examples:** add refreshVersions and libs.versions.toml to jacoco-marker example ([#21](#21)) ([659e206](659e206)), closes [#21](#21)

### 📝 Documentation

* **readme:** update version to 0.3.4 [skip ci] ([6ceaee8](6ceaee8))

### 🔧 Misc

* **dependencyUpdate:** update Library repo workflow references using the Updater ([#20](#20)) ([1d176ad](1d176ad)), closes [#20](#20)
@Arc-E-Tect

Copy link
Copy Markdown
Owner Author

🎉 This PR is included in version 0.4.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request released

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant