cbeust / kobalt

A Kotlin-based build system for the JVM.
Apache License 2.0
433 stars 60 forks source link

install{} should have include() directive #359

Closed ethauvin closed 7 years ago

ethauvin commented 7 years ago
    install {
        libDir = "deploy"
        include(from("logs"), to("logs"), glob("**/*"))
    }

This will make deployment a lot easier.

'libDir` should probably be renamed too.

@cbeust suggested renaming libDir to target or destination (https://github.com/cbeust/version-processor/issues/2#issuecomment-289293406)

cbeust commented 7 years ago

Fixed in 1.0.50. The new syntax is:

    install {
        collect(compileDependencies).map {
            copy(it, to("deploy"))
        }
    }