Hm, maybe it's a problem with `the`, honestly the ...
# gradle
m
Hm, maybe it's a problem with
the
, honestly the first time I used it so maybe I'm making a mistake. You can try doing something like:
Copy code
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
}