> ## Documentation Index
> Fetch the complete documentation index at: https://wiki.lorenzo0111.me/llms.txt
> Use this file to discover all available pages before exploring further.

# Adding the Dependency

> Learn how to add QualityArmory as a dependency to your project using Maven or Gradle

# Adding the Dependency

In order to use the QualityArmory API you need to add the plugin as a dependency. Replace VERSION with the latest version:

![GitHub release](https://img.shields.io/github/v/release/Lorenzo0111/QualityArmory)

## Java Dependency

<Tabs>
  <Tab title="Maven">
    To add QA to your project using maven, copy the following into the POM.xml.

    ```xml theme={null}
    <repository>
        <id>codemc-repo</id>
        <url>https://repo.codemc.io/repository/maven-public/</url>
    </repository>

    <dependency>
        <groupId>me.zombie_striker</groupId>
        <artifactId>QualityArmory</artifactId>
        <version>VERSION</version>
        <scope>provided</scope>
    </dependency>
    ```
  </Tab>

  <Tab title="Gradle">
    To add QA to your project using gradle, copy the following into the build.gradle.

    ```gradle theme={null}
    repositories {
        maven {
            name = "codemc-repo"
            url = "https://repo.codemc.io/repository/maven-public/"
        }
    }

    dependencies {
        compileOnly 'me.zombie_striker:QualityArmory:VERSION'
    }
    ```
  </Tab>

  <Tab title="Gradle KTS">
    To add QA to your project using gradle, copy the following into the build.gradle.kts.

    ```gradle theme={null}
    repositories {
        maven {
            name = "codemc-repo"
            url = uri("https://repo.codemc.io/repository/maven-public/")
        }
    }

    dependencies {
        compileOnly("me.zombie_striker:QualityArmory:VERSION")
    }
    ```
  </Tab>
</Tabs>

## Plugin Dependency

Add the plugin as a dependency to your plugin by editing the `plugin.yml` file by including the following line under the `depend` section:

```yaml theme={null}
# Use this if QualityArmory is required
depend: [QualityArmory]
# Use this if QualityArmory is optional
softdepend: [QualityArmory]
```

This ensures that your plugin will load after QualityArmory. If your plugin requires specific features from QualityArmory at runtime, remember to also use appropriate checks in your code to confirm that QualityArmory is enabled.
