0

We know, the Gradle equivalent of mvn clean install is gradle install...

but what if I needed to install skipping all tests? In maven we would call:

mvn clean -Dmaven.test.skip=true install

What should we call in Gradle for that?

epox
  • 9,236
  • 1
  • 55
  • 38
  • 1
    Does this answer your question? [Gradle build without tests](https://stackoverflow.com/questions/4597850/gradle-build-without-tests) – omajid Jul 29 '21 at 01:14
  • @omajid Let me try... Build differs from install, as the latter one installs jar to the repo... But the provided command-line options should also work for install. – epox Jul 29 '21 at 01:41

1 Answers1

-1
./gradlew install -x test 

Using -x test skips both: test execution and test code compilation.

epox
  • 9,236
  • 1
  • 55
  • 38