For AI agents: the documentation index is at https://docs.gradle.org/llms.txt. Request any page with the header Accept: text/markdown to get Markdown. User manual pages are also available as Markdown by replacing .html with .md in the URL.

getApplicationDistribution

The specification of the contents of the distribution.

Use this org.gradle.api.file.CopySpec to include extra files/resource in the application distribution.

plugins {
    id 'application'
}

application {
    applicationDistribution.from("some/dir") {
        include "*.txt"
    }
}

Note that the application plugin pre configures this spec to; include the contents of "src/dist", copy the application start scripts into the "bin" directory, and copy the built jar and its dependencies into the "lib" directory.

Since

4.10