Help the world stop coronavirus! Stay home!

Prev Next

Maven / 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

❤Cash Back At Stores you Love !!!❤

Earn your $10 reward when you make your first purchase through Ebates by signing up with clicking below button.

Ebates Coupons and Cash Back

More Related questions...

Show more question and Answers...

GIT Interview Questions

Comments & Discussions