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 missing annotation processors for micronaut modules. #872

Merged
merged 2 commits into from
Nov 15, 2023

Conversation

wetted
Copy link
Contributor

@wetted wetted commented Nov 14, 2023

closes #871

@melix @sdelamo
micronaut-tracing and micronaut-spring have multiple possible annotation processors. I included the primary ones. Do we need to add the others? If so then the implementation needs to be changed because it's based on a map with groupIds for keys.

These are the ones I didn't add:

  • io.micronaut.tracing:micronaut-tracing-opentelemetry-annotation
  • io.micronaut.spring:micronaut-spring-boot-annotation
  • io.micronaut.spring:micronaut-spring-web-annotation

@melix Also, I didn't see an obvious way this is tested, so I didn't change anything for the new ones either. Happy for any guidance.

@wetted wetted requested a review from melix November 14, 2023 17:56
@wetted wetted self-assigned this Nov 14, 2023
@wetted wetted requested a review from sdelamo November 14, 2023 17:56
@sdelamo sdelamo marked this pull request as draft November 15, 2023 06:01
Copy link
Contributor

@sdelamo sdelamo left a comment

Choose a reason for hiding this comment

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

I changed it to draft. Please re-request a review from me once this PR has tests and it is ready for review.

@melix melix marked this pull request as ready for review November 15, 2023 09:39
@melix
Copy link
Collaborator

melix commented Nov 15, 2023

I added tests. Note that the way this is done is not ideal, since indeed the plugin needs to know about all other projects. There is no obvious way to make it better, it's a bit of a chicken and egg problem.

Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication

@sdelamo sdelamo merged commit 169c598 into master Nov 15, 2023
7 checks passed
@sdelamo sdelamo deleted the adds-annotation-processors branch November 15, 2023 10:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Gradle automatically adds annotation processors but not for every module
3 participants