This page shows you how you can print or log a sentence with Gralde
tasks.register("logInfo") { logging.captureStandardOutput(LogLevel.INFO) doFirst { println("A task message which is logged at INFO level") } }
1)