# Installation

Endive requires **Java 11** or later.

Add Endive to your project using Maven or Gradle.

[![Maven Central](https://img.shields.io/maven-central/v/run.endive/runtime)](https://central.sonatype.com/artifact/run.endive/runtime)

## Maven

Add the runtime dependency to your `pom.xml`:

```xml
<dependency>
  <groupId>run.endive</groupId>
  <artifactId>runtime</artifactId>
  <version>${endive.version}</version>
</dependency>
```

### Bill of Materials (BOM)

To keep the versions of different Endive artifacts aligned, use the provided BOM:

```xml
<dependencyManagement>
    <dependencies>
        <dependency>
            <groupId>run.endive</groupId>
            <artifactId>bom</artifactId>
            <version>${endive.version}</version>
            <type>pom</type>
            <scope>import</scope>
        </dependency>
    </dependencies>
</dependencyManagement>
```

Then you can use any Endive dependency without declaring the version:

```xml
<dependency>
  <groupId>run.endive</groupId>
  <artifactId>runtime</artifactId>
</dependency>
```

## Gradle

```groovy
implementation 'run.endive:runtime:${endiveVersion}'
```

Or with the BOM:

```groovy
implementation platform('run.endive:bom:${endiveVersion}')
implementation 'run.endive:runtime'
```
