gradle custom task that depends on build task without testing
问题 I am using gradle 6.0.1 I am trying to write my on task, but I want first the the build task is executed but without tests. I tried (from build.gradle): task startEnv(type: GradleBuild) { tasks = ['build'] doLast { // START ENV CODE } } However, I don't manage to find a way to call build without running tests, as I would run gradle build -x test Is it possible to achieve this functionality? Another option I can use, is to check inside my startEnv task whether build already exists and run this