Building from source

Metarank is written in Scala and uses an SBT build system. It can be built on Windows, Linux and MacOS in the following way:

  1. Clone the metarank/metarank repo with your favourite git client.

  2. Install SBT, using its official installation manual for your OS.

  3. From shell, run the sbt assembly command, and metarank build will be built into target/scala-2.13/metarank.jar

$ sbt assembly

[info] welcome to sbt 1.7.1 (Eclipse Adoptium Java 11.0.15)
[info] loading global plugins from /home/code/.sbt/1.0/plugins
[info] loading settings for project metarank-build from plugins.sbt ...
[info] loading project definition from /home/code/metarank/project
[info] loading settings for project root from build.sbt ...
[info] set current project to metarank (in build file:/home/code/metarank/)
[info] compiling 28 Scala sources to /home/code/metarank/target/scala-2.13/classes ...
[info] compiling 24 Scala sources to /home/code/metarank/target/scala-2.13/classes ...
[success] Total time: 48 s, completed Aug 30, 2022, 3:40:06 PM

Building docker image

Docker image can be built the same way as the JAR bundle, with the following SBT command:

Last updated

Was this helpful?