Skip to content

Ban JUnit 4 imports#200

Merged
jtnord merged 1 commit intojenkinsci:masterfrom
strangelookingnerd:patch-1
Feb 26, 2026
Merged

Ban JUnit 4 imports#200
jtnord merged 1 commit intojenkinsci:masterfrom
strangelookingnerd:patch-1

Conversation

@strangelookingnerd
Copy link
Copy Markdown
Contributor

Ban JUnit 4 imports

To prevent regressions when adding new tests, jenkinsci/plugin-pom#1178 introduced a new flag that enables a Maven Enforcer rule banning org.junit.* imports while allowing org.junit.jupiter.*.

With this change, the build will fail if any org.junit.* imports are introduced.

Testing done

None. Rely on ci.jenkins.io.

Submitter checklist

  • Make sure you are opening from a topic/feature/bugfix branch (right side) and not your main branch!
  • Ensure that the pull request title represents the desired changelog entry
  • Please describe what you did
  • Link to relevant issues in GitHub or Jira
  • Link to relevant pull requests, esp. upstream and downstream changes
  • Ensure you have provided tests that demonstrate the feature works or the issue is fixed

@strangelookingnerd strangelookingnerd requested a review from a team as a code owner November 3, 2025 12:12
@jtnord jtnord enabled auto-merge November 3, 2025 12:19
@strangelookingnerd
Copy link
Copy Markdown
Contributor Author

Build error seems to be unrelated.

auto-merge was automatically disabled November 12, 2025 15:26

Pull request was closed

@jtnord jtnord enabled auto-merge February 26, 2026 12:12
@jtnord jtnord merged commit 8426fcd into jenkinsci:master Feb 26, 2026
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants