Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ dependencies {
implementation 'org.springframework.boot:spring-boot-starter-web:3.2.0'

testImplementation 'org.junit.jupiter:junit-jupiter-api:5.10.1'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.1'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:6.0.3'
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🔴 JUnit Jupiter API/Engine major version mismatch will break tests

The junit-jupiter-engine is bumped to 6.0.3 while junit-jupiter-api remains at 5.10.1 (line 17). The JUnit Jupiter API and Engine are tightly coupled components that must share the same version — the engine discovers and executes tests written against the API. A major version mismatch (5.x vs 6.x) will cause test execution failures at runtime: either the engine artifact won't resolve from Maven Central (JUnit Jupiter has no published 6.x line), or if it did, it would be incompatible with the 5.x API annotations used in src/test/java/com/example/ApplicationTest.java. The previous version 5.8.1 was already mismatched with the API 5.10.1; both should be aligned to the same version (e.g., 5.10.1).

Suggested change
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:6.0.3'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.10.1'
Open in Devin Review

Was this helpful? React with 👍 or 👎 to provide feedback.


testImplementation 'com.squareup.okhttp3:okhttp:4.12.0'
}
Expand Down
Loading