1
mirror of https://github.com/CarmJos/UserPrefix.git synced 2024-09-19 20:15:47 +00:00
UserPrefix/pom.xml

321 lines
11 KiB
XML
Raw Normal View History

2021-08-22 19:12:37 +00:00
<?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>
<properties>
<project.jdk.version>8</project.jdk.version>
<project.package>cc.carm.plugin.userprefix</project.package>
<maven.compiler.source>${project.jdk.version}</maven.compiler.source>
<maven.compiler.target>${project.jdk.version}</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.encoding>UTF-8</maven.compiler.encoding>
<easyplugin.version>1.4.10</easyplugin.version>
<mineconfig.version>2.0.1</mineconfig.version>
</properties>
2021-08-22 19:12:37 +00:00
<groupId>cc.carm.plugin</groupId>
2021-10-07 14:37:31 +00:00
<artifactId>userprefix</artifactId>
<version>3.0.0</version>
2021-08-22 19:12:37 +00:00
<name>UserPrefix</name>
2021-10-07 14:37:31 +00:00
<description>轻便、高效、实时的用户前缀系统。</description>
<url>https://github.com/CarmJos/UserPrefix</url>
<issueManagement>
<system>GitHub Issues</system>
<url>https://github.com/CarmJos/UserPrefix/issues</url>
2021-10-07 14:37:31 +00:00
</issueManagement>
<ciManagement>
<system>GitHub Actions</system>
<url>https://github.com/CarmJos/UserPrefix/actions/workflows/maven.yml</url>
2021-10-07 14:37:31 +00:00
</ciManagement>
<developers>
<developer>
<id>CarmJos</id>
<name>Carm Jos</name>
<email>carm@carm.cc</email>
<url>https://work.carm.cc</url>
2021-10-07 14:37:31 +00:00
<roles>
<role>Main Developer</role>
</roles>
</developer>
</developers>
<organization>
<name>YourCraft你的世界</name>
<url>https://www.ycraft.cn/</url>
</organization>
2021-10-07 14:37:31 +00:00
<licenses>
<license>
<name>GNU General Public License v3.0</name>
<url>https://opensource.org/licenses/GPL-3.0</url>
</license>
</licenses>
2021-08-22 19:12:37 +00:00
<repositories>
2021-08-25 06:27:34 +00:00
2021-08-25 06:21:04 +00:00
<repository>
2021-10-19 02:47:55 +00:00
<id>spigot-repo</id>
<url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>
2021-08-25 06:21:04 +00:00
</repository>
2021-08-22 19:12:37 +00:00
<repository>
<id>luck-repo</id>
<url>https://repo.lucko.me/</url>
</repository>
2021-08-25 06:27:34 +00:00
<repository>
<id>maven-central</id>
<url>https://repo1.maven.org/maven2/</url>
</repository>
2021-10-07 14:37:31 +00:00
<repository>
<id>sonatype-repo</id>
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
</repository>
<repository>
<id>EasyPlugin</id>
<url>https://raw.githubusercontent.com/CarmJos/EasyPlugin/repo/</url>
</repository>
2021-10-07 14:37:31 +00:00
<repository>
<id>carm-repo</id>
<name>Carm's Repo</name>
<url>https://repo.carm.cc/repository/maven-public/</url>
2021-10-07 14:37:31 +00:00
</repository>
2021-08-22 19:12:37 +00:00
</repositories>
2021-10-07 13:49:39 +00:00
<distributionManagement>
<downloadUrl>https://github.com/CarmJos/UserPrefix/releases</downloadUrl>
2021-10-07 13:49:39 +00:00
<repository>
<id>github</id>
<name>GitHub Packages</name>
<url>https://maven.pkg.github.com/CarmJos/UserPrefix</url>
2021-10-07 13:49:39 +00:00
</repository>
</distributionManagement>
2021-08-22 19:12:37 +00:00
<dependencies>
<dependency>
<groupId>cc.carm.lib</groupId>
<artifactId>easyplugin-main</artifactId>
<version>${easyplugin.version}</version>
<scope>compile</scope>
<optional>true</optional>
</dependency>
<dependency>
<groupId>cc.carm.lib</groupId>
<artifactId>easyplugin-gui</artifactId>
<version>${easyplugin.version}</version>
<scope>compile</scope>
<optional>true</optional>
</dependency>
<dependency>
<groupId>cc.carm.lib</groupId>
<artifactId>easyplugin-githubchecker</artifactId>
<version>${easyplugin.version}</version>
<scope>compile</scope>
<optional>true</optional>
</dependency>
<dependency>
<groupId>cc.carm.lib</groupId>
<artifactId>mineconfiguration-bukkit</artifactId>
<version>${mineconfig.version}</version>
<scope>compile</scope>
<optional>true</optional>
</dependency>
2021-08-22 19:12:37 +00:00
<dependency>
<groupId>org.spigotmc</groupId>
2021-10-19 02:49:35 +00:00
<artifactId>spigot-api</artifactId>
2021-08-22 19:12:37 +00:00
<version>1.17-R0.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>me.clip</groupId>
<artifactId>placeholderapi</artifactId>
<version>2.10.9</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>net.luckperms</groupId>
<artifactId>api</artifactId>
<version>5.3</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.bstats</groupId>
<artifactId>bstats-bukkit</artifactId>
2022-02-18 10:26:12 +00:00
<version>3.0.0</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.jetbrains</groupId>
<artifactId>annotations</artifactId>
<version>23.0.0</version>
<scope>provided</scope>
</dependency>
2021-08-22 19:12:37 +00:00
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
2021-11-21 12:01:49 +00:00
<version>4.13.2</version>
2021-08-22 19:12:37 +00:00
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-clean-plugin</artifactId>
<version>2.5</version>
<configuration>
<filesets>
<fileset>
<directory>${project.basedir}/asset/</directory>
<useDefaultExcludes>true</useDefaultExcludes>
<includes>
<include>**/*</include>
</includes>
</fileset>
<fileset>
<directory>${project.basedir}/api-docs/</directory>
<useDefaultExcludes>true</useDefaultExcludes>
<includes>
<include>**/*</include>
</includes>
</fileset>
</filesets>
</configuration>
</plugin>
2021-10-07 14:37:31 +00:00
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.2.0</version>
<configuration>
<classifier>javadoc</classifier>
<links>
<link>https://javadoc.io/doc/org.jetbrains/annotations/</link>
</links>
<detectJavaApiLink>true</detectJavaApiLink>
<encoding>UTF-8</encoding>
2021-11-22 20:11:31 +00:00
<charset>UTF-8</charset>
<docencoding>UTF-8</docencoding>
2021-11-22 20:16:59 +00:00
<locale>zh_CN</locale>
2021-10-07 14:37:31 +00:00
</configuration>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<source>${project.jdk.version}</source>
<target>${project.jdk.version}</target>
2021-10-07 14:37:31 +00:00
<encoding>UTF-8</encoding>
<compilerArgument>-parameters</compilerArgument>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>3.2.0</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.2.0</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.2.3</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
</execution>
</executions>
<configuration>
2022-01-16 01:08:10 +00:00
<finalName>${project.name}-${project.version}</finalName>
<outputDirectory>${project.basedir}/asset/</outputDirectory>
<createDependencyReducedPom>false</createDependencyReducedPom>
<relocations>
<relocation>
<pattern>org.bstats</pattern>
<shadedPattern>${project.package}.bstats</shadedPattern>
</relocation>
<relocation>
<pattern>cc.carm.lib</pattern>
<shadedPattern>${project.package}.lib</shadedPattern>
</relocation>
<relocation>
<pattern>org.json</pattern>
<shadedPattern>${project.package}.lib.json</shadedPattern>
</relocation>
</relocations>
2021-10-07 14:37:31 +00:00
<filters>
<filter>
<artifact>*:*</artifact>
<excludes>
<exclude>META-INF/MANIFEST.MF</exclude>
<exclude>META-INF/*.txt</exclude>
</excludes>
</filter>
</filters>
</configuration>
</plugin>
2021-08-22 19:12:37 +00:00
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.22.1</version>
<configuration>
<useSystemClassLoader>false</useSystemClassLoader>
</configuration>
</plugin>
</plugins>
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
</resource>
</resources>
</build>
</project>