-
Notifications
You must be signed in to change notification settings - Fork 8
Adding ModernDisguise to your project
iiAhmedYT edited this page Dec 11, 2023
·
2 revisions
Add this repo to your repositories:
<repository>
<id>gravemc-repo</id>
<url>https://repo.gravemc.net/releases/</url>
</repository>
and then add this dependancy:
<dependency>
<groupId>dev.iiahmed</groupId>
<artifactId>ModernDisguise</artifactId>
<version>2.5</version>
<scope>compile</scope>
</dependency>
Make sure you have the maven shade plugin in order for it to be included in your jar file.
You can relocate them as well, here's an example maven-shade-plugin config:
<configuration>
<filters>
<filter>
<artifact>*:*</artifact>
<excludes>
<exclude>META-INF/</exclude>
</excludes>
</filter>
</filters>
<relocations>
<relocation>
<pattern>dev.iiahmed.disguise</pattern>
<shadedPattern>your.own.package.disguise</shadedPattern>
</relocation>
</relocations>
</configuration>
Add this repo to your repositories block:
repositories {
maven {
name = "gravemc-repo"
url = "https://repo.gravemc.net/releases/"
}
}
and then add dependency:
dependencies {
implementation 'dev.iiahmed:ModernDisguise:2.5'
}
SOON.
make sure you use the shadowJar plugin in order to include the library in your jar.
Please note this wiki is still under development, If you have any issue or any question you can ask me on Discord