ethauvin
04/12/2017, 9:46 PM@Task(name = "deploy", dependsOn = arrayOf("assemble", "install"), runAfter = arrayOf("install"),
description = "Deploy application")
fun deploy(project: Project): TaskResult {
include(from("kobaltBuild/libs"), to(deploy), glob("**/*"))
include(from("properties"), to(deploy), glob("**/*.properties"))
collect(compileDependencies).forEach {
copy(from(it.file.absolutePath), to("$deploy/$lib"))
}
File("$deploy/logs").mkdir()
KobaltLogger.log(1, " Deployed to " + File(deploy).absolutePath)
return TaskResult()
}