How to avoid gradle log messages?
To try this out, create the following build script named build.gradle.
task hello {
doLast {
println 'Hello Java2Novice...'
}
}
|
Move to the folder where build.gradle file placed and run command "gradle hello"
java2novice$ gradle hello
:hello
Hello Java2Novice...
BUILD SUCCESSFUL
Total time: 3.348 secs
|
In the above output you can see gradle's log messages as well. To avoid gradle's log messages run "gradle -q hello"
command, which suppress gradle's log messages.
java2novice$ gradle -q hello
Hello Java2Novice...
|
Reference: Gradle Documentation
|