I can declare a type for a gradle task and doing so seems to inherit some methods. For example:
task myCopyTask(type: Copy){ from "foo" into "bar" } So, I think myCopyTask is an instance of org.gradle.api.tasks.Copy class, yes? And if I declare a task without any type, it is an instance of org.gradle.api.DefaultTask? Sorry for the basic question. I have been reading the gradle guide like this page but it isn't clear to me what type: exactly is.