Add dependabot ignore rule for JUnit 6+ (requires Java 17) #4504
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
This PR adds a rule to
.github/dependabot.ymlto prevent Dependabot from proposing updates to JUnit 6 or later versions.Context
The project currently:
dependencyManagement/build.gradle.kts)release.set(8)inai.java-conventions.gradle.kts)JUnit 6, when released, is expected to require Java 17+ as a minimum runtime version, which would be incompatible with this project's Java 8 target.
Changes
Added an ignore rule for
org.junit:junit-bomto block versions[6,):This follows the same pattern already established in the file for other dependencies with Java version requirements:
logback 1.4+requires Java 11+mockito 5requires Java 11spring-boot 3requires Java 17Impact
Dependabot will continue to propose updates to JUnit 5.x versions but will not create PRs for JUnit 6 or later, preventing accidental updates that would break Java 8 compatibility.
Original prompt
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.