fix: include security patches for plugin dependencies#83
Merged
Conversation
feat: provide spotbugs annotations to consumers build: clean up gradle configuration files
tessstoddard
approved these changes
Feb 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary of Changes
Added dependency constraints for plugin dependencies to address multiple known security vulnerabilities. By adding the constraints in the plugin itself, consumers will not need to override these dependencies in their own
build.gradlefiles.Also added compile-only dependencies for SpotBugs annotations to consumers. We were previously providing these through
path-core:common, but including them in the plugin that introduces SpotBugs is a more logical choice. This solution also avoids adding unnecessary runtime dependencies.Finally, I cleaned up the Gradle configuration files to remove redundancies and deprecated syntax.
Public API Additions/Changes
N/A
Downstream Consumer Impact
Downstream consumers will automatically have dependency constraints added to their gradle project for
org.apache.commons:commons-lang3,org.apache.logging.log4j:log4j-core, andorg.jetbrains.kotlin:kotlin-stdlib. These constraints set minimum versions to address known vulnerabilities introduced bycheckstyle,spotbugs,pmd, anddetekt.Consumers no longer need to explicitly add the
com.github.spotbugs:spotbugs-annotationsdependency in theirbuild.gradlefiles and can safely delete them.There are no breaking changes to consumer APIs, and no forced migration steps are required.
How Has This Been Tested?
I pulled a snapshot version of this plugin into multiple projects (
vogue,path-connector-globalcu,path-accessor-okta) to verify the constraint overrides and classpath injections.Checklist: