mbstavola
01/22/2017, 7:50 PMthe
, honestly the first time I used it so maybe I'm making a mistake. You can try doing something like:
val shadowJar = getTask<ShadowJar>("shadowJar")
shadowJar.apply {
// Config
}
@Suppress("UNCHECKED_CAST")
fun <T : Task> getTask(taskName: String): T {
return project.tasks.getByName(taskName) as T
}