DevOps / Gradle interview questions
Create a Gradle task and explain how to execute it.
The Gradle build file defines the project and its tasks. The below list a simple task to print "Hello world!".
task hello { doLast { println 'Hello World!' } }
Run Gradle hello on the command line in the directory of the build file to execute hello task. If the Gradle output should be suppressed, use the -q (quiet) parameter.
gradle hello
More Related questions...