plugins {
    java
}

// tag::file-deps[]
repositories {
    flatDir {
        name = "libs dir"
        dir(file("libs"))  // <1>
    }
}

dependencies {
    implementation(files("libs/our-custom.jar"))  // <2>
    implementation(":log4j:1.2.8")     // <3>
    implementation(":commons-io:2.1")  // <3>
}
// end::file-deps[]

// tag::retrieve-deps[]
tasks {
    create<Copy>("retrieveRuntimeDependencies") {
        into("$buildDir/libs")
        from(configurations.runtimeClasspath)
    }
}
// end::retrieve-deps[]

// tag::properties[]
val tmpDistDir by extra { file("$buildDir/dist") }

tasks {
    create<Jar>("javadocJar") {
        from(tasks.javadoc)  // <1>
        classifier = "javadoc"
    }

    create<Copy>("unpackJavadocs") {
        from(zipTree(tasks.getByName<Jar>("javadocJar").archivePath))  // <2>
        into(tmpDistDir)  // <3>
    }
}
// end::properties[]

plugins {
    java
}

// tag::file-deps[]
repositories {
    flatDir {
        name = "libs dir"
        dir(file("libs"))  // <1>
    }
}

dependencies {
    implementation(files("libs/our-custom.jar"))  // <2>
    implementation(":log4j:1.2.8")     // <3>
    implementation(":commons-io:2.1")  // <3>
}
// end::file-deps[]

// tag::retrieve-deps[]
tasks {
    create<Copy>("retrieveRuntimeDependencies") {
        into("$buildDir/libs")
        from(configurations.runtimeClasspath)
    }
}
// end::retrieve-deps[]

// tag::properties[]
val tmpDistDir by extra { file("$buildDir/dist") }

tasks {
    create<Jar>("javadocJar") {
        from(javadoc)  // <1>
        classifier = "javadoc"
    }

    create<Copy>("unpackJavadocs") {
        from(zipTree(getByName<Jar>("javadocJar").archivePath))  // <2>
        into(tmpDistDir)  // <3>
    }
}
// end::properties[]

Fix ant import Kotlin DSL samples
Fix ant import Kotlin DSL samples

robinverduijn/gradle,blindpirate/gradle,blindpirate/gradle,robinverduijn/gradle,robinverduijn/gradle,gradle/gradle,robinverduijn/gradle,gradle/gradle,robinverduijn/gradle,blindpirate/gradle,robinverduijn/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,robinverduijn/gradle,gradle/gradle,robinverduijn/gradle,blindpirate/gradle,gradle/gradle,robinverduijn/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,robinverduijn/gradle,robinverduijn/gradle,gradle/gradle