Skip to content

Fix spring-security-oauth2-core compiler warnings#18482

Merged
rwinch merged 3 commits intospring-projects:mainfrom
paulvas:fix/spring-security-oauth2-core-compiler-warnings
Jan 12, 2026
Merged

Fix spring-security-oauth2-core compiler warnings#18482
rwinch merged 3 commits intospring-projects:mainfrom
paulvas:fix/spring-security-oauth2-core-compiler-warnings

Conversation

@paulvas
Copy link
Copy Markdown
Contributor

@paulvas paulvas commented Jan 12, 2026

Replace the manual instantiation of HttpMessageReaders with ClientCodecConfigurer.create().getReaders().

Closes: gh-18434

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Jan 12, 2026
@rwinch
Copy link
Copy Markdown
Member

rwinch commented Jan 12, 2026

@paulvas Thank you for the pull request. Can you please ensure to use the directions in #18405 ? Specifically, I'm wanting to ensure that we don't get compiler warnings again so the PR should include the steps to Configure Error on Warning. Can you please update the pull request with this?

@rwinch rwinch self-assigned this Jan 12, 2026
@rwinch rwinch added status: waiting-for-feedback We need additional information before we can continue in: build An issue in the build in: oauth2 An issue in OAuth2 modules (oauth2-core, oauth2-client, oauth2-resource-server, oauth2-jose) and removed status: waiting-for-triage An issue we've not yet triaged labels Jan 12, 2026
@paulvas paulvas force-pushed the fix/spring-security-oauth2-core-compiler-warnings branch from eb1953b to c6950bc Compare January 12, 2026 18:00
Closes: spring-projectsgh-18434
Signed-off-by: Pavel Vassiliev <paulvas@gmail.com>

Signed-off-by: paulvas <paulvas@gmail.com>
To prevent future compiler warnings from being introduced, this change
applies the `compile-warnings-error` plugin to the
`spring-security-oauth2-core` module.

This ensures that any new warnings will fail the build, maintaining
code quality and preventing warning accumulation.

Fixes: spring-projectsgh-18434
Signed-off-by: Pavel Vassiliev <paulvas@gmail.com>
Signed-off-by: paulvas <paulvas@gmail.com>
Copy link
Copy Markdown
Member

@rwinch rwinch left a comment

Choose a reason for hiding this comment

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

Thank you. Sorry for not being clear on the requirements for the plugin. I've provided feedback inline to clarify and updated the description of the parent issue to reflect that feedback.

import org.gradle.api.tasks.compile.JavaCompile
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

class CompileWarningsErrorPlugin implements Plugin<Project> {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thank you for adding the plugin. I see that I had a typo in the description with the file suffix being .groovy. It should have been .gradle so that you can use a Pre-compiled Script Plugin at buildSrc/src/main/groovy/javadoc-warnings-error.gradle. Can you please update this?

Fixes: spring-projectsgh-18434
Signed-off-by: paulvas <paulvas@gmail.com>
@paulvas
Copy link
Copy Markdown
Contributor Author

paulvas commented Jan 12, 2026

Thank you for the feedback Rob. I have migrated compiler-warnings-error plugin to gradle.

@spring-projects-issues spring-projects-issues added status: feedback-provided Feedback has been provided and removed status: waiting-for-feedback We need additional information before we can continue labels Jan 12, 2026
@rwinch rwinch enabled auto-merge (rebase) January 12, 2026 19:50
@rwinch rwinch removed the status: feedback-provided Feedback has been provided label Jan 12, 2026
@rwinch rwinch added this to the 7.1.0-M1 milestone Jan 12, 2026
@rwinch rwinch added the type: enhancement A general enhancement label Jan 12, 2026
@rwinch
Copy link
Copy Markdown
Member

rwinch commented Jan 12, 2026

Thank you! This is now marked to be merged as soon as the checks complete successfully.

@rwinch rwinch merged commit 0d47870 into spring-projects:main Jan 12, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

in: build An issue in the build in: oauth2 An issue in OAuth2 modules (oauth2-core, oauth2-client, oauth2-resource-server, oauth2-jose) type: enhancement A general enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove compiler warnings for spring-security-oauth2-core

3 participants