« Return to Thread: 0.6 Task definitions in plugins

0.6 Task definitions in plugins

by JerodLass :: Rate this Message:

Reply to Author | View in Thread

With the new task declaration scheme, it looks like I'm going to need to make a lot of changes to the plugins I am using.  Since createTask() is a deprecated method of Project, how will I go about creating tasks in my plugin classes?

Currently, I am declaring as follows:

project.createTask('buildTag', dependsOn: 'resources') {
    //task logic
}

How will I achieve the same in Gradle 0.6?

Thanks,
Jerod

 « Return to Thread: 0.6 Task definitions in plugins