Setup
This is how you add MF-MSG to your project.

Version

Make sure to replace {version} with the latest version of MF-MSG. Latest version: 2.2.4-SNAPSHOT
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 "me.mattstudios:triumph-msg-bukkit:{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
apply plugin: 'com.github.johnrengelman.shadow'
2
3
shadowJar {
4
relocate 'me.mattstudios.msg', '[YOUR PACKAGE].mfmsg'
5
}
Copied!
You need to add the dependency to your pom.xml.
1
<dependency>
2
<groupId>me.mattstudios</groupId>
3
<artifactId>triumph-msg-bukkit</artifactId>
4
<version>{version}</version> <!-- replace version here -->
5
</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>me.mattstudios.msg</pattern>
9
<shadedPattern>[YOUR PACKAGE].mfmsg</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 2mo ago
Copy link