--- title: Compile Heroic ---
In order to run Heroic you currently have to compile your own jar. This is because the project should still be considered unstable, and might change in the future.
In order to compile Heroic, you'll need a working Java 11 JDK, Maven 3, and Gradle.
Get the Heroic source from GitHub:
$ git clone https://github.com/spotify/heroic.git
Go to the cloned directory and run Maven for repackaged dependencies:
$ cd heroic
$ tools/install-repackaged
Now run Gradle to build the Heroic project:
$ ./gradlew assemble
The previous command will generate a new .jar file in heroic-dist/target, which you can use to run Heroic through {% include github-link.html module='heroic-dist' name='HeroicService' %}.
$ java -cp heroic-dist/target/heroic-dist-0.0.1-SNAPSHOT-shaded.jar com.spotify.heroic.HeroicService <config>