Skip to content

HimaJyun/JBukkitLib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

92 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JBukkitLib

Library for Bukkit

Usage

Add Maven dependency

<project>
    <repositories>
        <repository>
            <id>himajyun-repo</id>
            <url>https://himajyun.github.io/mvn-repo/</url>
        </repository>
    </repositories>

    <dependencies>
        <dependency>
            <groupId>jp.jyn</groupId>
            <artifactId>JBukkitLib</artifactId>
            <version>2.0.0</version>
        </dependency>
    </dependencies>
</project>

Create a FatJar with maven-shade-plugin.
It is recommended to "relocation" to prevent conflicts with different versions included in other plugins.

<build>
    <plugins>
        <plugin>
            <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-shade-plugin -->
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-shade-plugin</artifactId>
            <version>3.3.0</version>
            <executions>
                <execution>
                    <phase>package</phase>
                    <goals>
                        <goal>shade</goal>
                    </goals>
                    <configuration>
                        <artifactSet>
                            <includes>
                                <include>jp.jyn:JBukkitLib</include>
                            </includes>
                        </artifactSet>
                        <relocations>
                            <relocation>
                                <pattern>jp.jyn.jbukkitlib</pattern>
                                <shadedPattern>com.example.jbukkitlib</shadedPattern>
                            </relocation>
                        </relocations>
                    </configuration>
                </execution>
            </executions>
        </plugin>
    </plugins>
</build>

Version

Version Bukkit Java
2.0.0 1.17.1-R0.1-SNAPSHOT 16
1.8.0 1.16.4-R0.1-SNAPSHOT 8
1.7.0 1.16.4-R0.1-SNAPSHOT 8
1.6.0 1.16.4-R0.1-SNAPSHOT 8
1.5.0 1.16.4-R0.1-SNAPSHOT 8
1.4.0 1.15.2-R0.1-SNAPSHOT 8
1.3.0 1.15.2-R0.1-SNAPSHOT 8
1.2.0 1.14.4-R0.1-SNAPSHOT 8
1.1.0 1.14.1-R0.1-SNAPSHOT 8
1.0.0 1.13.2-R0.1-SNAPSHOT 8