// START SNIPPET define-configuration
configurations {
    compile
}
// END SNIPPET define-configuration

// START SNIPPET lookup-configuration
println configurations.compile.name
println configurations['compile'].name
// END SNIPPET lookup-configuration

// START SNIPPET configure-configuration
configurations {
    compile {
        description = 'compile classpath'
        transitive = true
    }
    runtime {
        extendsFrom compile
    }
}
configurations.compile {
    description = 'compile classpath'
}
// END SNIPPET configure-configuration
