Building from source
- Install
git. - Install the Eclipse Temurin or Zulu builds of OpenJDK 25.
- Java 25 is the required build JDK and is the latest LTS release. Released artifacts target Java 21.
- The Scala and sbt versions used by the build are compatible with Java 25; see the compatibility table.
- Install sbt.
- On Debian Linux or Ubuntu, follow this guide
- On Arch:
sudo pacman -Syu sbt - On macOS / Homebrew:
brew install sbt
- Clone the git repository:
git clone https://github.com/apalache-mc/apalache.git. - Change into the project directory:
cd apalache. - Install direnv and run
direnv allow, or use another way to set up the shell environment. - To build and package Apalache for development purposes, run
make.- To skip running the tests, you can run
make package.
- To skip running the tests, you can run
- To build and package Apalache for releases and end-user distribution, run
make dist. - The distribution package will be built to
./target/universal/apalache-<VERSION>, and you can move this wherever you’d like, and ensure that the<dist-package-location>/bindirectory is added to yourPATH.
Running from within the Apalache repo
If you prefer to keep the built package inside of the Apalache source
repository, you have three options after running make:
- Add the
./bindirectory in the source repository to yourPATH, which will makeapalache-mcavailable. - Install direnv and run
direnv allow, which will putapalache-mcin your path when you are inside the Apalache repo directory. - Run
./bin/apalache-mcdirectly.