When working with the API of TradeSystem, please note the library relocation as stated below.
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
<dependency>
<groupId>com.github.CodingAir</groupId>
<artifactId>TradeSystem</artifactId>
<version>v2.6.1</version>
</dependency>
<dependency>
<groupId>com.github.CodingAir</groupId>
<artifactId>CodingAPI</artifactId>
<version>1.84</version>
<scope>provided</scope>
</dependency>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.2.3</version>
<configuration>
<relocations>
<relocation>
<pattern>de.codingair.codingapi</pattern>
<shadedPattern>de.codingair.tradesystem.lib.codingapi</shadedPattern>
</relocation>
</relocations>
</configuration>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
plugins {
id 'java'
id 'com.github.johnrengelman.shadow' version "7.1.2"
}
repositories {
...
maven { url 'https://jitpack.io' }
...
}
dependencies {
...
compileOnly 'com.github.CodingAir:TradeSystem:2.5.3'
compileOnly 'com.github.CodingAir:CodingAPI:1.79'
...
}
java {
toolchain.languageVersion.set(JavaLanguageVersion.of(17))
}
shadowJar {
relocate 'de.codingair.codingapi', 'de.codingair.tradesystem.lib.codingapi'
}