apply plugin:'java'
// START SNIPPET use-plugin
apply plugin:'application'
// END SNIPPET use-plugin

version = '1.0.2'

// START SNIPPET mainClassName-conf
mainClassName = "org.gradle.sample.Main"
// END SNIPPET mainClassName-conf

// START SNIPPET distribution-spec
task createDocs {
    def docs = file("$buildDir/docs")
    outputs.dir docs
    doLast {
        docs.mkdirs()
        new File(docs, "readme.txt").write("Read me!")
    }
}

applicationDistribution.from(createDocs.outputs.files) {
    into "docs"
}
// END SNIPPET distribution-spec

repositories {
    mavenCentral()
}

dependencies {
    compile 'commons-collections:commons-collections:3.2.1'
}