Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

You can create a task in build.gradle.kts that outputs a string using the doLast method. Here is an example:

task("myTask") {
    doLast {
        println("Hello, World!")
    }
}

In this example, the task is named myTask and it will output the string "Hello, World!" when it is executed. You can modify the string to output any string you like.