// tag::use-plugin[]
apply plugin: 'distribution'
// end::use-plugin[]

// tag::configure-distribution[]
distributions {
    main {
        baseName = 'someName'
        contents {
            from { 'src/readme' }
        }
    }
}
// end::configure-distribution[]

// tag::publish-distribution[]
apply plugin:'maven'

uploadArchives {
    repositories {
        mavenDeployer {
            repository(url: "file://some/repo")
        }
    }
}
// end::publish-distribution[]

// tag::custom-distribution[]
distributions {
    custom {}
}
// end::custom-distribution[]
