I want to know how to change build task? I have checkstyle task and i want that to be get exclude from build task. As because of that my whole build is getting failed.
gradle build -x checkstyleMain
okay this is one way, How should i mention in build gradle file for skipping checkstyle task.
There are a few ways - take a look at this chapter in the user guide: http://www.gradle.org/docs/current/userguide/more_about_tasks.html
checkstyle {
sourceSets = []
}
Now Checkstyle tasks will only run when called explicitly from the command line or depended upon explicitly in the build script.
it worked…thank you so much (y)