This is a minimalistic Haskell project consisting of a small library located in ./src/ as well as the main app in ./app/. The project is powerd by Gradle build automation and the Stack dependency management. It works as a living example and proof of concept for a build inside our Jenkins instance. You can have a look at the build process defined in ./build.gradle.kts, which calls all the necessary Stack commands.
To build this project yourself, you might need to install a few dependancies. On Debian-based distros run:
sudo apt-get update sudo apt-get install make gcc libgmp3-dev default-jre gitThis will not hurt, if the packages are installed already.
This repo is served proudly via the git-daemon. You can simply clone it via:
git clone git://andromeda.softwarefools.com/miguel/gradle_jenkins_test_02
Finally enter the project directory and invoke gradle with:
cd gradle_jenkins_test_02 ./gradlew stack-execIt will take some time until all dependancies are resolved but finally you should see the output of the assembled and executed binary.
Read more about the individual projects behind this setup: