Maven install task looks for artifacts of skipped tasks

Hi. I’m using maven plugin with distributions plugin. Distributions plugin creates zip and tar archives, i want to just have zip. I add
tasks.withType(Tar).each { t ->
t.enabled = false
}
This disables all Tar tasks.
But when i run gradle install it fails with message that it cannot find a tarball archive, should skipping task also not include it in default archive configuration? I can use another configuration for it but i think this is might a bug.