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

wip/6.0 HHH-13937 Get rid of junit5 compile-time dependencies #3337

Closed

Conversation

NathanQingyangXu
Copy link
Contributor

@NathanQingyangXu NathanQingyangXu commented Apr 9, 2020

https://hibernate.atlassian.net/browse/HHH-13937

The root cause that junit-jupiter and junit-vintage show up as compile time dependencies is they are specified as runtime dependency. They should be specified as testRuntime instead (see https://www.petrikainulainen.net/programming/testing/junit-5-tutorial-running-unit-tests-with-gradle/, e.g.).

@NathanQingyangXu NathanQingyangXu changed the title HHH-13937 get rid of junit5 compile-time dependencies wip/6.0 HHH-13937 Get rid of junit5 compile-time dependencies Apr 9, 2020
@dreab8 dreab8 added the 6.0 label Apr 14, 2020
testRuntime(libraries.wildfly_transaction_client)
testRuntime( libraries.wildfly_transaction_client )
testRuntime( libraries.junit5_vintage )
testRuntime( libraries.junit5_jupiter )

Copy link
Member

Choose a reason for hiding this comment

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

they can be removed, the correct dependencies are already declared in java-module.gradle

@dreab8
Copy link
Member

dreab8 commented Apr 14, 2020

@NathanQingyangXu thanks for the PR, I created this one #3339 where I just remove the dependencies causing the issue, what do you think?

@NathanQingyangXu
Copy link
Contributor Author

I think your PR is better.

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