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

4.x - Fix SLF4J binding for annotation processors #7706

Merged

Conversation

romain-grecourt
Copy link
Contributor

Description

Add slf4j-api as a dependency to inject/tools to ensure that the version of both slf4j-api and slf4j-jdk14 are aligned.

Fixes #7129

Documentation

No impact.

Add slf4j-api as a dependency to inject/tools.
This ensures when the compiler plugin resolves the processor transitive dependencies the resolved version of slf4j-api is the managed version.
Otherwise we may end-up with different versions between slf4j-api and slf4j-jdk14 and a failed binding with the warning.

Fixes helidon-io#7129
@romain-grecourt romain-grecourt added this to the 4.0.0-RC2 milestone Oct 3, 2023
@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Oct 3, 2023
@romain-grecourt romain-grecourt linked an issue Oct 3, 2023 that may be closed by this pull request
@romain-grecourt romain-grecourt changed the title Fix SLF4J binding for annotation processors 4.x - Fix SLF4J binding for annotation processors Oct 3, 2023
@barchetta barchetta modified the milestones: 4.0.0-RC2, 4.0.0 Oct 3, 2023
@romain-grecourt romain-grecourt merged commit fd84ce5 into helidon-io:main Oct 3, 2023
12 checks passed
@romain-grecourt romain-grecourt deleted the slf4j-binding-inject-tools branch October 3, 2023 16:27
romain-grecourt added a commit to romain-grecourt/helidon that referenced this pull request Oct 6, 2023
- Remove usage of `maven-jaxb2-plugin` (not actually needed, and fails with java.net.MalformedURLException: unknown protocol: maven)
- Apply the same fix as helidon-io#7706, add slf4j-api and slf4j-jdk14 (because of handlerbars)
romain-grecourt added a commit that referenced this pull request Oct 6, 2023
- Remove usage of `maven-jaxb2-plugin` (not actually needed, and fails with java.net.MalformedURLException: unknown protocol: maven)
- Apply the same fix as #7706, add slf4j-api and slf4j-jdk14 (because of handlerbars)
dalexandrov pushed a commit to dalexandrov/helidon that referenced this pull request Oct 17, 2023
Add slf4j-api as a dependency to inject/tools.
This ensures when the compiler plugin resolves the processor transitive dependencies the resolved version of slf4j-api is the managed version.
Otherwise we may end-up with different versions between slf4j-api and slf4j-jdk14 and a failed binding with the warning.

Fixes helidon-io#7129
dalexandrov pushed a commit to dalexandrov/helidon that referenced this pull request Oct 17, 2023
- Remove usage of `maven-jaxb2-plugin` (not actually needed, and fails with java.net.MalformedURLException: unknown protocol: maven)
- Apply the same fix as helidon-io#7706, add slf4j-api and slf4j-jdk14 (because of handlerbars)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCA Verified All contributors have signed the Oracle Contributor Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4.x: Slf4j binding fails for annotation processors
2 participants