Hello,

I think spring boot gradle plugin also adds org.gradle.api.distribution.plugins.DistributionPlugin transitively.

When I was running build noticed that some additional distribution stages are also running.

distZip,distTar,bootDistZip,bootDistTar

For our application we do not need to create distributions like tar/zip/war as it was also adding more time to our build.

So I have disabled all these tasks

distZip {
    enabled = false
}

distTar {
    enabled = false
}

bootDistZip {
    enabled = false
}

bootDistTar {
    enabled = false
}

Can we add document that if user is using just jar as distribution we can disable other packaging types?

also let me know if what i did was also correct.

Comment From: wilkinsona

Gradle's application plugin applies the distribution plugin transitively. If you don't want the standard distributions (distZip and distTar) or the Spring Boot variants of those (bootDistZip and bootDistTar), do not apply the application plugin.

Comment From: swapy

Hello, Thank you very much for correcting me @wilkinsona ,Yes indeed I was using application plugin. I removed it and now do not see these tasks added.

For me issue is resolved. Suggestion: For documentation if needed/worth can add about distribution tasks.

Comment From: wilkinsona

Thanks for letting us know.

The creation of the boot distribution is already documented:

Creates a new distribution named boot and configures it to contain the artifact in the bootArchives configuration in its lib directory and the start scripts in its bin directory.