Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use Junit5 without maven

If you see the junit official website it gives examples of Junit5 with maven/gradle.
Is it possible to make a simple java project using Junit5 without using maven etc.?

like image 313
pensee Avatar asked Nov 06 '25 13:11

pensee


1 Answers

Yes, you need to download the junit5 JARs as mentioned in https://junit.org/junit5/docs/current/user-guide/#overview . How to run the tests? here: https://junit.org/junit5/docs/current/user-guide/#running-tests.

Theoratically, Maven, Gradle, Ant or any other build tools are the tools to make your dependency management easier and you can do it yourself as in the early days of Java if you want to. However, why you want to do that? Why not just use the great build tools to save your time?

like image 167
Duy Nguyen Avatar answered Nov 08 '25 08:11

Duy Nguyen



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!