1
votes

I am using Eclipse Buildship plugin for executing Gradle tasks on my project. Any idea how to exclude the test task when the build task is run? In Gradle STS plugin, I used to update the Program arguments to '-x test' which skipped the test task. When I tried the same with Buildship, getting the below error.

* What went wrong:
Task ' test' not found in root project
3

3 Answers

2
votes

Have you considered running the "assemble" task instead of "build"?

:build
+--- :assemble
|    \--- :jar
|         \--- :classes
|              +--- :compileJava
|              \--- :processResources
\--- :check
     \--- :test
          +--- :classes
          |    +--- :compileJava
          |    \--- :processResources
          \--- :testClasses
               +--- :compileTestJava
               |    \--- :classes
               |         +--- :compileJava
               |         \--- :processResources
               \--- :processTestResources
1
votes

Add "-x test" to the Program Arguments in Run Configuration

0
votes

For me. I had to put '-x' and 'test' on separate lines for BuildShip to work.