gradle
8.6

# contents

abstract fun contents(action: Action<out Any>): CopySpec(source)

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.