Add YAMLib or SpigotYAMLib as a dependency:
Option 1 (shaded)
Add dependency:
HTML:
<dependency>
<groupId>io.github.pigaut.yamlib
</groupId>
<artifactId>YAMLib
</artifactId>
<version>1.0
</version>
<scope>compile
</scope>
</dependency>
or
HTML:
<dependency>
<groupId>io.github.pigaut.yamlib
</groupId>
<artifactId>SpigotYAMLib
</artifactId>
<version>1.0
</version>
<scope>compile
</scope>
</dependency>
Shade and relocate:
HTML:
<plugin>
<groupId>org.apache.maven.plugins
</groupId>
<artifactId>maven-shade-plugin
</artifactId>
<version>3.6.0
</version>
<executions>
<execution>
<phase>package
</phase>
<goals>
<goal>shade
</goal>
</goals>
</execution>
</executions>
<configuration>
<relocations>
<relocation>
<pattern>io.github.pigaut.yamlib
</pattern>
<shadedPattern>YOUR.PACKAGE.yamlib
</shadedPattern>
</relocation>
</relocations>
</configuration>
</plugin>
Option 2 (provided)
Add dependency:
HTML:
<dependency>
<groupId>io.github.pigaut.yamlib
</groupId>
<artifactId>SpigotYAMLib
</artifactId>
<version>1.0
</version>
<scope>provided
</scope>
</dependency>
Update depends in plugin.yml:
Code (YAML):
depends
:
[YAMLib
]