what about just gradle add junit
? It would install the latest release version as a compile dependency by default. Wow! Sensible defaults!
If you want to get more granular: gradle add -v 4.12 -c testCompile junit
or gradle add -c testCompile org.junit:junit:4.12
↧
Add a dependency via command line ala pip and npm?
↧