Full Example

Maven

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>

    <groupId>io.github.rysefoxx.example</groupId>
    <artifactId>RyseInventoryExample</artifactId>
    <version>1.0-SNAPSHOT</version>

    <name>RyseInventoryExample</name>
    <description>This pom.xml shows a possible structure for RyseInventory. Yours will differ for sure!</description>

    <properties>
        <java.version>16</java.version>
        <maven.compiler.source>16</maven.compiler.source>
        <maven.compiler.target>16</maven.compiler.target>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    </properties>

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-shade-plugin</artifactId>
                <version>3.2.4</version>
                <executions>
                    <execution>
                        <phase>package</phase>
                        <goals>
                            <goal>shade</goal>
                        </goals>
                        <configuration>
                            <createDependencyReducedPom>false</createDependencyReducedPom>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>

    <repositories>
        <repository>
            <id>sonatype</id>
            <url>"https://s01.oss.sonatype.org/content/groups/public/"</url>
        </repository>
    </repositories>

    <dependencies>
        <dependency>
            <groupId>io.github.rysefoxx.inventory</groupId>
            <artifactId>RyseInventory-Plugin</artifactId>
            <version>1.5.7</version>
        </dependency>
    </dependencies>
</project>

Gradle Kotlin

plugins {
    id("java")
    id("com.github.johnrengelman.shadow") version "7.1.2"
}

group = "io.github.rysefoxx.example"
version = "1.0-SNAPSHOT"
description = "This build.gradle.kts shows a possible structure for RyseInventory. Yours will differ for sure!"

repositories {
    mavenCentral()
    maven { url = uri("https://s01.oss.sonatype.org/content/groups/public/") }
}

dependencies {
    implementation("io.github.rysefoxx.inventory:RyseInventory-Plugin:1.5.7")
}

tasks {
    shadowJar {
        mergeServiceFiles()
    }
}

Gradle Groovy

plugins {
    id 'java'
    id "com.github.johnrengelman.shadow" version "7.1.2"
}

group 'io.github.rysefoxx.example'
version '1.0-SNAPSHOT'
description 'This build.gradle shows a possible structure for RyseInventory. Yours will differ for sure!'

repositories {
    mavenCentral()
    maven { url "https://s01.oss.sonatype.org/content/groups/public/" }
}

dependencies {
    implementation 'io.github.rysefoxx.inventory:RyseInventory-Plugin:1.5.7'
}

shadowJar {
    mergeServiceFiles()
}

Last updated