> For the complete documentation index, see [llms.txt](https://wiki.microtus.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wiki.microtus.dev/getting-started/dependencies.md).

# Dependencies

Describes how to add Minestom as a dependency in your project.

{% hint style="info" %}
Minestom needs Java 21 or newer in order to run. If you are using Gradle, you must use version 8.5 or higher.
{% endhint %}

Adding Microtus to your Java project is really simple, you only need to add a few repositories:

## Repositories

{% tabs %}
{% tab title="Gradle (Groovy)" %}

```groovy
repositories {
    mavenCentral()
}
```

{% endtab %}

{% tab title="Gradle (Kotlin)" %}

```groovy
repositories {
    mavenCentral()
}
```

{% endtab %}
{% endtabs %}

## Dependencies

{% tabs %}
{% tab title="Gradle (Groovy)" %}

```groovy
dependencies {
    implementation platform('net.onelitefeather.microtus:bom:version')
    implementation 'net.onelitefeather.microtus:Microtus' // Main Components

    testImplementation 'net.onelitefeather.microtus.testing:testing' // Testing Components
}
```

{% endtab %}

{% tab title="Gradle (Kotlin)" %}

```kotlin
dependencies {
    implementation(platform("net.onelitefeather.microtus:bom:VERSION")
    implementation("net.onelitefeather.microtus:Microtus") // Main components

    testImplementation("net.onelitefeather.microtus.testing:testing") // Test components
}
```

{% endtab %}

{% tab title="Maven (Parent)" %}

```xml
<project ...>
    <modelVersion>4.0.0</modelVersion>
    <groupId>your.project</groupId>
    <artifactId>microtus-project</artifactId>
    <version>0.0.1-SNAPSHOT</version>
    <packaging>pom</packaging>
    <name>Microtus </name>
    <parent>
        <groupId>net.onelitefeather.microtus</groupId>
        <artifactId>bom</artifactId>
        <version>VERSION</version>
    </parent>
    
    <dependencies>
        <!-- ... -->
        <dependency>
            <groupId>net.onelitefeather.microtus</groupId>
            <artifactId>Microtus</artifactId>
        </dependency>
        <dependency>
            <groupId>net.onelitefeather.microtus.testing</groupId>
            <artifactId>testing</artifactId>
            <scope>test</scope>
        </dependency>
    </dependencies>
</project>
```

{% endtab %}

{% tab title="Maven" %}

```xml
<dependencyManagement>
    <dependencies>
        <dependency>
            <groupId>net.onelitefeather.microtus</groupId>
            <artifactId>bom</artifactId>
            <version>VERSION</version>
            <type>pom</type>
            <scope>import</scope>
        </dependency>
    </dependencies>
</dependencyManagement>
<dependencies>
    <!-- ... -->
    <dependency>
        <groupId>net.onelitefeather.microtus</groupId>
        <artifactId>Microtus</artifactId>
    </dependency>
    <dependency>
        <groupId>net.onelitefeather.microtus.testing</groupId>
        <artifactId>testing</artifactId>
        <scope>test</scope>
    </dependency>
</dependencies>
```

{% endtab %}
{% endtabs %}

**A list of versions can be found at** [**https://central.sonatype.com/search?q=microtus**](https://central.sonatype.com/search?q=microtus)**.**


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://wiki.microtus.dev/getting-started/dependencies.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
