HandyLib
Used in:
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency> <groupId>cn.handyplus.lib</groupId> <artifactId>HandyLib</artifactId> <version>3.10.9</version> </dependency>
<?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>cn.handyplus.lib</groupId> <artifactId>HandyLib</artifactId> <name>HandyLib</name> <version>3.10.9</version> <description>handy的Minecraft快速开发框架</description> <url>https://github.com/handyplus</url> <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> <spigot-api.vesion>1.21-R0.1-SNAPSHOT</spigot-api.vesion> <lombok.version>1.18.32</lombok.version> <mysql.version>8.2.0</mysql.version> <sqlite.version>3.42.0.0</sqlite.version> <HikariCP.version>4.0.3</HikariCP.version> <slf4j.version>1.7.36</slf4j.version> <FoliaLib.version>1.1.4</FoliaLib.version> <authlib.version>5.0.47</authlib.version> <annotations.version>24.1.0</annotations.version> <junit.version>5.10.2</junit.version> </properties> <issueManagement> <system>Github Issue</system> <url>https://github.com/handyplus</url> </issueManagement> <licenses> <license> <name>GNU LESSER GENERAL PUBLIC LICENSE v3.0</name> <url>https://choosealicense.com/licenses/lgpl-3.0/</url> </license> </licenses> <developers> <developer> <name>handy</name> <email>handyplus@163.com</email> </developer> </developers> <scm> <connection>scm:git@gitee.com:handy-git/HandyLib.git</connection> <developerConnection>scm:git@gitee.com:handy-git/HandyLib.git</developerConnection> <url>git@gitee.com:handy-git/HandyLib.git</url> </scm> <dependencies> <dependency> <groupId>org.spigotmc</groupId> <artifactId>spigot-api</artifactId> <version>${spigot-api.vesion}</version> <optional>true</optional> </dependency> <dependency> <groupId>com.zaxxer</groupId> <artifactId>HikariCP</artifactId> <version>${HikariCP.version}</version> <optional>true</optional> </dependency> <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-api</artifactId> <version>${slf4j.version}</version> <optional>true</optional> </dependency> <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-nop</artifactId> <version>${slf4j.version}</version> <optional>true</optional> </dependency> <dependency> <groupId>cn.handyplus.lib.adapter</groupId> <artifactId>FoliaLib</artifactId> <version>${FoliaLib.version}</version> <optional>true</optional> </dependency> <dependency> <groupId>org.projectlombok</groupId> <artifactId>lombok</artifactId> <version>${lombok.version}</version> <optional>true</optional> </dependency> <dependency> <groupId>com.mysql</groupId> <artifactId>mysql-connector-j</artifactId> <version>${mysql.version}</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.xerial</groupId> <artifactId>sqlite-jdbc</artifactId> <version>${sqlite.version}</version> <scope>provided</scope> </dependency> <dependency> <groupId>com.mojang</groupId> <artifactId>authlib</artifactId> <version>${authlib.version}</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.jetbrains</groupId> <artifactId>annotations</artifactId> <version>${annotations.version}</version> <scope>compile</scope> </dependency> <!-- 全局单元测试 --> <dependency> <groupId>org.junit.jupiter</groupId> <artifactId>junit-jupiter-engine</artifactId> <version>${junit.version}</version> <scope>test</scope> </dependency> </dependencies> <distributionManagement> <snapshotRepository> <id>ossrh</id> <url>https://s01.oss.sonatype.org/content/repositories/snapshots</url> </snapshotRepository> <repository> <id>ossrh</id> <url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url> </repository> </distributionManagement> <build> <plugins> <!-- Source --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-source-plugin</artifactId> <version>3.3.1</version> <executions> <execution> <id>attach-sources</id> <goals> <goal>jar-no-fork</goal> </goals> </execution> </executions> </plugin> <!-- javadoc --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-javadoc-plugin</artifactId> <version>3.6.3</version> <executions> <execution> <id>attach-javadocs</id> <goals> <goal>jar</goal> </goals> </execution> </executions> </plugin> <!-- Gpg Signature --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-gpg-plugin</artifactId> <version>3.2.4</version> <executions> <execution> <id>sign-artifacts</id> <phase>verify</phase> <goals> <goal>sign</goal> </goals> <configuration> <keyname>handy</keyname> </configuration> </execution> </executions> </plugin> <!--用于部署和发布的 Nexus Staging Maven 插件--> <plugin> <groupId>org.sonatype.plugins</groupId> <artifactId>nexus-staging-maven-plugin</artifactId> <version>1.6.13</version> <extensions>true</extensions> <configuration> <serverId>ossrh</serverId> <nexusUrl>https://s01.oss.sonatype.org/</nexusUrl> <autoReleaseAfterClose>true</autoReleaseAfterClose> </configuration> </plugin> <!--指定1.8jdk--> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.13.0</version> <configuration> <source>1.8</source> <target>1.8</target> </configuration> </plugin> <!--将依赖的jar包打包到当前jar包--> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-shade-plugin</artifactId> <version>3.5.3</version> <configuration> <createDependencyReducedPom>false</createDependencyReducedPom> <artifactSet> <includes> <include>com.zaxxer:*:*:*</include> <include>org.slf4j:*:*:*</include> <include>cn.handyplus.lib.adapter:*:*:*</include> </includes> </artifactSet> <relocations> <relocation> <pattern>com.zaxxer</pattern> <shadedPattern>cn.handyplus.lib.expand.zaxxer</shadedPattern> </relocation> <relocation> <pattern>org.slf4j</pattern> <shadedPattern>cn.handyplus.lib.expand.slf4j</shadedPattern> </relocation> <relocation> <pattern>cn.handyplus.lib.adapter</pattern> <shadedPattern>cn.handyplus.lib.expand.adapter</shadedPattern> </relocation> </relocations> <!--添加过滤,避免重复警告--> <filters> <filter> <artifact>*:*</artifact> <excludes> <exclude>META-INF/MANIFEST.MF</exclude> </excludes> </filter> </filters> </configuration> <executions> <execution> <phase>package</phase> <goals> <goal>shade</goal> </goals> </execution> </executions> </plugin> </plugins> </build> </project>