<@U0QBCLV62> This is what I needed: ``` val checks...
# gradle
j
@bamboo This is what I needed:
Copy code
val checkstyleConfig = configurations.getByName("checkstyle")
checkstyleConfig.dependencies.add(dependencies.create(group = "com.plexxi.plugins", name = "checkstyle-config", version = "1.1.2"))

val checkstyleResourcesDirectory = "${rootProject.buildDir}/checkstyleResources"

val copyCheckstyleResourcesTask = task<Sync>("copyCheckstyleResources") {
    dependsOn(checkstyleConfig)

    fun <T : Any> createClosure(action: Any.() -> T) =
            object : groovy.lang.Closure<T>(this, this) {
                fun doCall(): T = delegate.action()
            }

    from(createClosure {
        checkstyleConfig.map(project::zipTree)
    })
    into(checkstyleResourcesDirectory)
}