Adding ModernDisguise to your project

Maven 📕

Adding to the POM

Add this repository to your repositories:

<repository>
    <id>gravemc-repo</id>
    <url>https://repo.gravemc.net/releases/</url>
</repository>

and then add this dependency:

<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.

Shading & Relocating

You can relocate the package 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>

Gradle 💻

Adding to the build file

Add this repository 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'
}

Shadowing & Relocating

You can relocate the package as well, here's an example shadowJar plugin block:

shadowJar {
    relocate("dev.iiahmed.disguise", "example.package.shade")
}

make sure you use the shadowJar plugin in order to include the library in your jar.

Last updated