Gradle Commands
JVM build automation tool.All Gradle pages
- gradle build -x test: build a Gradle project without running tests./gradlew build -x test builds a Gradle project without running tests; assemble skips all checks. Which command to use, -DskipTests myths and how to confirm it.
- gradle dependencies --configuration runtimeClasspath: show the dependency tree./gradlew dependencies prints the dependency tree per configuration; dependencyInsight explains why a version was chosen. How to read (*), (c) and -> markers.
- gradle test --tests: run a single test class or method with Gradle./gradlew test --tests com.acme.MyTest runs one test class, or one method with .method. Wildcards, simple class names, subprojects, --rerun and pitfalls.
- gradle wrapper --gradle-version: upgrade the Gradle wrapper./gradlew wrapper --gradle-version X upgrades the Gradle wrapper; run it twice to refresh the scripts and JAR. Options, files to commit, JDK and plugin issues.