Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Spring Modulith #1228

Closed
wants to merge 1 commit into from

Conversation

odrotbohm
Copy link
Contributor

This commit adds support to add Spring Modulith to a project. We add the Event Publication Registry matching the (optionally) also selected persistence flavor (JPA, JDBC, MongoDB). Furthermore, the observability support in case any of the supported observability backends is selected as dependency.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Jun 23, 2023
@snicoll snicoll self-requested a review June 26, 2023 15:57
@wilkinsona wilkinsona changed the title Support for Spring Modulith dependencies. Add Spring Modulith Jun 30, 2023
@odrotbohm odrotbohm force-pushed the hacking/spring-modulith branch 4 times, most recently from ddc2f06 to 728cbfc Compare June 30, 2023 14:59
@odrotbohm
Copy link
Contributor Author

All changes in place as requested.

Copy link
Contributor

@snicoll snicoll left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR. I've added a few comments for your consideration.

I know building the client is an issue due to installing node-gyp. If you don't want to install it, you can remove the following dependency locally:

<dependency>
  <groupId>io.spring.start</groupId>
  <artifactId>start-client</artifactId>
  <scope>runtime</scope>
</dependency>

And then run the following command: ./mvnw verify -pl start-site. Thanks!

@odrotbohm
Copy link
Contributor Author

That's been a useful tip, thanks! I have incorporated your feedback, fixed the Checkstyle issues and updated the branch.

@snicoll
Copy link
Contributor

snicoll commented Jul 7, 2023

Unfortunately, the build is failing for me and I can still see a bunch of additional newlines in method bodies. Can you please look again?

This commit adds support to add Spring Modulith to a project. We add the Event Publication Registry matching the (optionally) also selected persistence flavor (JPA, JDBC, MongoDB). Also, the observability support in case any of the supported observability backends is selected as dependency.
@odrotbohm
Copy link
Contributor Author

Sorry, for the hassle. Done.

@snicoll snicoll self-assigned this Jul 7, 2023
@snicoll
Copy link
Contributor

snicoll commented Jul 10, 2023

I've taken over now so there's no need to push further updates. I've created spring-projects/spring-modulith#237 as the core starter doesn't bring the "core" spring boot starter, which breaks the metadata test when this PR is around.

I've also found some lingering experimental in the build customizer. None of those are a blocker.

snicoll pushed a commit that referenced this pull request Jul 10, 2023
This commit adds support to add Spring Modulith to a project. We add
the Event Publication Registry matching the (optionally) also selected
persistence flavor (JPA, JDBC, MongoDB). Also, the observability support
in case any of the supported observability backends is selected as
dependency.

See gh-1228
snicoll added a commit that referenced this pull request Jul 10, 2023
@snicoll snicoll closed this in 6894b54 Jul 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants