Setup
This is how you add the lib to your project.

Version

Make sure to replace {version} with the latest version.
Latest version
Gradle
Maven
You need to add the dependency to your build.gradle.
1
repositories {
2
maven { url = "https://repo.mattstudios.me/artifactory/public/" }
3
}
4
5
dependencies {
6
implementation "dev.triumphteam:triumph-gui:{version}" // Replace version here
7
}
Copied!
In order to include the lib in your project, you need to add shadowJar plugin build.gradle. Replace [YOUR PACKAGE]with your plugin's package, for example me.myplugin.plugin.
1
plugins {
2
id "com.github.johnrengelman.shadow" version "7.0.0"
3
}
4
5
shadowJar {
6
relocate("dev.triumphteam.gui", "[YOUR PACKAGE].gui")
7
}
Copied!
You need to add the dependency to your pom.xml.
1
<repositories>
2
<repository>
3
<id>repo</id>
4
<url>https://repo.mattstudios.me/artifactory/public/</url>
5
</repository>
6
</repositories>
7
8
<dependency>
9
<groupId>dev.triumphteam</groupId>
10
<artifactId>triumph-gui</artifactId>
11
<version>{version}</version> <!-- replace version here -->
12
</dependency>
Copied!
In order to include the framework in your project, you need to add the following to your pom.xml, in the plugins section. Replace [YOUR PACKAGE]with your plugin's package, for example me.myplugin.plugin.
1
<plugin>
2
<groupId>org.apache.maven.plugins</groupId>
3
<artifactId>maven-shade-plugin</artifactId>
4
<version>3.1.1</version>
5
<configuration>
6
<relocations>
7
<relocation>
8
<pattern>dev.triumphteam.gui</pattern>
9
<shadedPattern>[YOUR PACKAGE].gui</shadedPattern> <!-- Replace package here here -->
10
</relocation>
11
</relocations>
12
</configuration>
13
<executions>
14
<execution>
15
<phase>package</phase>
16
<goals>
17
<goal>shade</goal>
18
</goals>
19
</execution>
20
</executions>
21
</plugin>
Copied!
Last modified 3mo ago
Copy link