# contents

abstract fun contents(action: Action<in CopySpec>): CopySpec

Configures the contents of the distribution.

Can be used to configure the contents of the distribution:

    plugins {
        id 'distribution'
    }

    distributions {
        main {
            contents {
                from "src/readme"
            }
        }
    }

Content copied to clipboard
The DSL inside the `contents\{}` block is the same DSL used for Copy tasks.