lam
05/31/2017, 2:31 PMclass GreetingTask : DefaultTask() {
@TaskAction
fun doHelloWorld() = println("Hello World!")
}
class GreetingPlugin : Plugin<Project> {
val TASK_NAME = "greeting"
override fun apply(project: Project) {
project.tasks.create(TASK_NAME, GreetingTask::class.java)
}
}
the problem is, in the command line I type: gradlew greeting
and I got the following error
FAILURE: Build failed with an exception.
* What went wrong:
Task 'greeting' not found in root project 'cx-auth'.
can someone help me?