plugins {
    id("java-library")
}

repositories {
    jcenter()
}

// tag::config-logic[]
dependencies {
    implementation 'log4j:log4j:1.2.17'
}

task printArtifactNames {
    doLast {
        def libraryNames = configurations.compileClasspath.collect { it.name }
        logger.quiet libraryNames
    }
}
// end::config-logic[]
