# Importing the API

### Setup with gradle

```kotlin
repositories {
	mavenCentral()
	maven { url 'https://jitpack.io' }
}
```

Replace `VERSION` with the latest available (v4.7.6)

```kotlin
dependencies {
       implementation 'com.github.xF3d33:UltimateTeams:VERSION:api'
}
```

### Setup with Maven

```markup
<repositories>
     <repository>
	  <id>jitpack.io</id>
          <url>https://jitpack.io</url>
     </repository>
</repositories>
```

Replace `VERSION` with the latest available (v5.0)

```markup
<dependency>
    <groupId>com.github.xF3d33</groupId>
    <artifactId>UltimateTeams</artifactId>
    <version>VERSION</version>
    <classifier>api</classifier>
</dependency>
```

JitPack: <https://jitpack.io/#xF3d33/UltimateTeams>

Since the version written above might not be updated regurarly, check the jitpack link to get the latest version

## Add as dependency into your plugin

### For Bukkit plugins:

Add UltimateTeams to your `softdepend` (if it is optional for your plugin to work) or `depend` (if your plugin relies on UltimateTeams to work) section in your `plugin.yml`

```yaml
name: ultimateteams-addon
version: '1.0'
main: dev.xf3d3.myplugin.MyPlugin
api-version: '1.19'
softdepend: # Or, use 'depend' instead
  - UltimateTeams
```
