Skip to content
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

JUnit dependency should be test scope #122

Open
1 of 3 tasks
scotthraban opened this issue Oct 28, 2024 · 3 comments · May be fixed by #123
Open
1 of 3 tasks

JUnit dependency should be test scope #122

scotthraban opened this issue Oct 28, 2024 · 3 comments · May be fixed by #123

Comments

@scotthraban
Copy link

Summary

JUnit is a test library, and as such should be made test scope in the POM, so as to prevent forcing a test library as a transient dependency on consumers of the library.

Steps to Reproduce

  1. Run mvn dependency:tree -Dincludes=junit:junit

Expected Results

Dependency definition is test.

Actual Results (including error logs, if applicable)

Dependency definition is compile.

Reproducible

  • Always
  • Sometimes
  • Non-Reproducible

Version/Tag number

3.0.5

Environment setup

N/A - Build issue.

Additional Information

b002c04#diff-9c5fb3d1b7e3b0f54bc5c4182965c4fe1f9023d449017cece3005d3f90e8e4d8R187-R190

Dependency should have been added with test scope, as was previously on the cucumber-junit library that junit replaced.

@szh
Copy link
Contributor

szh commented Feb 7, 2025

Thank you for the issue. Would you like to submit a PR to fix this?

scotthraban added a commit to scotthraban/conjur-api-java that referenced this issue Feb 8, 2025
@scotthraban scotthraban linked a pull request Feb 8, 2025 that will close this issue
6 tasks
@scotthraban
Copy link
Author

@szh sure thing, please see #122.

@szh
Copy link
Contributor

szh commented Feb 17, 2025

@gl-johnson can you please review this, given your Java knowledge is superior to mine? It's PR #123

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants