Skip to content

Latest commit

 

History

History
32 lines (26 loc) · 665 Bytes

Gradle.md

File metadata and controls

32 lines (26 loc) · 665 Bytes

Gradle

Install via brew

brew install gradle@6|7|8

Create/update gradle wrapper

gradle wrapper

Run a task (build) against a particular [sub]project

gradle :projectname:build

Clean then run a task (build) against a project

gradle clean :projectname:build

Copy dependency tree to file

./gradlew dependencies > deps.txt
./gradlew project_name:dependencies > deps.txt

Check dependency exists on classpath in command line (can also switch to testCompileClasspath)

./gradlew :module_name:sub_module_name:dI --configuration compileClasspath --dependency wiremock