diff options
| author | Miguel <m.i@gmx.at> | 2018-07-19 21:37:16 +0200 |
|---|---|---|
| committer | Miguel <m.i@gmx.at> | 2018-07-19 21:37:16 +0200 |
| commit | 7ad6b0fe911b1c36e8d9dd601a921bb928b9d06d (patch) | |
| tree | 6e0a10d5b5c845c836a7a2d3ce719821a14b86c0 | |
| parent | e17def151428b81d4005f58c902f5e8b66fdd31e (diff) | |
stack-exec and deps
| -rw-r--r-- | build.gradle.kts | 25 |
1 files changed, 23 insertions, 2 deletions
diff --git a/build.gradle.kts b/build.gradle.kts index 88698fc..e22f702 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -20,7 +20,7 @@ val taskStackInstall = tasks.create("stack-install") { } exec{ - setCommandLine("mv","stack-*-linux-x86_64","stack-bin") + setCommandLine("/bin/bash", "-c","mv stack-*-linux-x86_64 stack-bin") } } @@ -45,6 +45,27 @@ val taskStackInit = tasks.create<Exec>("stack-init") { group = "Haskell" dependsOn(taskStackInstall) - setCommandLine(stackBinary,"init") + setCommandLine(stackBinary,"init","--force") } + +val taskStackBuild = tasks.create<Exec>("stack-build") { + + description = "initialize stack from the package.yaml" + group = "Haskell" + + dependsOn(taskStackInit) + setCommandLine(stackBinary,"build") + +} + +val taskStackExec = tasks.create<Exec>("stack-exec") { + + description = "initialize stack from the package.yaml" + group = "Haskell" + + dependsOn(taskStackInstall) + setCommandLine(stackBinary,"exec","gradle-jenkins-haskell-exe") + +} + |
