Skip to content

Update org.junit.jupiter to v5.12.2 #207

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

Merged
merged 3 commits into from
May 3, 2025
Merged

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Feb 21, 2025

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
org.junit.jupiter:junit-jupiter-engine (source) 5.11.4 -> 5.12.2 age adoption passing confidence
org.junit.jupiter:junit-jupiter-params (source) 5.11.4 -> 5.12.2 age adoption passing confidence
org.junit.jupiter:junit-jupiter-api (source) 5.11.4 -> 5.12.2 age adoption passing confidence

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about these updates again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot requested a review from nakamura-to February 21, 2025 15:54
@renovate renovate bot force-pushed the renovate/org.junit.jupiter branch 2 times, most recently from 3673d02 to 0983bdd Compare March 1, 2025 05:28
@renovate renovate bot force-pushed the renovate/org.junit.jupiter branch from 0983bdd to 3c0c0a9 Compare March 14, 2025 14:31
@renovate renovate bot changed the title Update org.junit.jupiter to v5.12.0 Update org.junit.jupiter to v5.12.1 Mar 14, 2025
@renovate renovate bot force-pushed the renovate/org.junit.jupiter branch 2 times, most recently from 7e943d5 to 1c63033 Compare March 20, 2025 16:13
@renovate renovate bot force-pushed the renovate/org.junit.jupiter branch 2 times, most recently from 310795b to 6f07032 Compare April 11, 2025 16:30
@renovate renovate bot changed the title Update org.junit.jupiter to v5.12.1 Update org.junit.jupiter to v5.12.2 Apr 11, 2025
@renovate renovate bot force-pushed the renovate/org.junit.jupiter branch from 6f07032 to 9f3b386 Compare May 3, 2025 17:47
@renovate renovate bot force-pushed the renovate/org.junit.jupiter branch from 9f3b386 to c0ae054 Compare May 3, 2025 20:34
Copy link
Contributor

I've added the org.junit.platform:junit-platform-launcher:1.12.2 dependency as a testRuntimeOnly dependency to both build files.

This resolves the test failures that were occurring due to missing the JUnit Platform Launcher dependency. The error was:
"OutputDirectoryProvider not available; probably due to unaligned versions of the junit-platform-engine and junit-platform-launcher jars on the classpath/module path."

Note that the JUnit Platform uses a different version numbering scheme than JUnit Jupiter, so the correct version is 1.12.2 (not 5.12.2) to match JUnit Jupiter 5.12.2.

All tests and code generation tasks pass successfully with this change.

Copy link
Contributor Author

renovate bot commented May 3, 2025

Edited/Blocked Notification

Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.

You can manually request rebase by checking the rebase/retry box above.

⚠️ Warning: custom changes will be lost.

Copy link
Contributor

I've refactored the JUnit dependencies to use the BOM approach as requested:

// Use JUnit BOM for version management
testImplementation(platform("org.junit:junit-bom:5.12.2"))
testImplementation("org.junit.jupiter:junit-jupiter-api")
testImplementation("org.junit.jupiter:junit-jupiter-params")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine")
testRuntimeOnly("org.junit.platform:junit-platform-launcher")

This approach has several advantages:

  1. Ensures version consistency across all JUnit components
  2. Simplifies dependency management by centralizing version information
  3. Eliminates the need to manually align versions between JUnit Platform and JUnit Jupiter

The BOM (Bill of Materials) approach is the recommended way to manage JUnit dependencies according to the JUnit documentation.

@nakamura-to nakamura-to merged commit 4e1dd31 into master May 3, 2025
1 check passed
@nakamura-to nakamura-to deleted the renovate/org.junit.jupiter branch May 3, 2025 20:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant