Build, install, run

How to build, install, and run the e2immu analyser.

Building and installing the analyser and related projects is detailed in the Installing e2immu → section of the manual.


STEP 1: Ensure you have a JDK 16 ( or better, and git (

STEP 2: Clone the project(s) from GitHub, minimally e2immu-support → and e2immu →.

STEP 3: Use the Gradle wrapper and a Java JDK 16 to build and publish the jars to your local repository

./gradlew publishToMavenLocal

Now the support jar, analyser, two helper jars, and the Gradle plugin are available in your local repo.

STEP 4: Add the following snippet to the settings.gradle file of your project

pluginManagement {
    repositories {
    resolutionStrategy {
        eachPlugin {
            if ( == 'org.e2immu') {

and these two snippets to the build.gradle file:

plugins {
    id 'java'
    id 'org.e2immu.analyser'

e2immu {
    jmods = 'java.base.jmod,java.logging.jmod'
    sourcePackages = "your.project.package." 
    readAnnotatedAPIPackages = "your.project.package.aapi."
    writeAnnotationXML = true
    writeAnnotationXMLPackages = "your.project.package."
    upload = true

Run the analyser on your project’s code by executing

./gradlew e2immu-analyser

STEP 5: Take a look at the demo project →.

Edit this page on GitHub