This commit is contained in:
MiaoWoo 2021-06-02 06:19:20 +00:00
parent 00ad10f3c7
commit d39057c84a
3 changed files with 72 additions and 126 deletions

2
.gitignore vendored
View File

@ -23,3 +23,5 @@
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml # virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid* hs_err_pid*
target
*.iml

192
pom.xml
View File

@ -1,135 +1,75 @@
<?xml version="1.0" encoding="UTF-8"?> <?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" <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"> 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> <modelVersion>4.0.0</modelVersion>
<groupId>Dragon</groupId> <groupId>Dragon</groupId>
<artifactId>DragonLottery-Maven</artifactId> <artifactId>DragonLottery</artifactId>
<version>1.0-SNAPSHOT</version> <version>1.0-SNAPSHOT</version>
<name>DragonLottery-Maven</name> <name>DragonLottery-Maven</name>
<!-- FIXME change it to the project's website --> <!-- FIXME change it to the project's website -->
<url>http://www.example.com</url> <url>http://www.example.com</url>
<properties> <properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.8</maven.compiler.source> <maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target> <maven.compiler.target>1.8</maven.compiler.target>
</properties> </properties>
<dependencies> <dependencies>
<dependency> <dependency>
<groupId>junit</groupId> <groupId>org.spigotmc</groupId>
<artifactId>junit</artifactId> <artifactId>spigot-api</artifactId>
<version>4.11</version> <version>1.12.2-R0.1-SNAPSHOT</version>
<scope>test</scope> </dependency>
</dependency> </dependencies>
<!-- 金币 -->
<dependency>
<groupId>Vault</groupId>
<artifactId>Vault</artifactId>
<version>2.8</version>
<scope>system</scope>
<systemPath>${project.basedir}/lib/Vault.jar</systemPath>
</dependency>
<!-- papi -->
<dependency>
<groupId>Papi</groupId>
<artifactId>Papi</artifactId>
<version>2.10.9</version>
<scope>system</scope>
<systemPath>${project.basedir}/lib/PlaceholderAPI-2.10.9.jar</systemPath>
</dependency>
<!-- 1.12.2 -->
<dependency>
<groupId>spigot</groupId>
<artifactId>spigot</artifactId>
<version>1.12.2</version>
<scope>system</scope>
<systemPath>${project.basedir}/lib/spigot-1.12.2.jar</systemPath>
</dependency>
<!-- 点券 -->
<dependency>
<groupId>points</groupId>
<artifactId>points</artifactId>
<version>1.12.2</version>
<scope>system</scope>
<systemPath>${project.basedir}/lib/PlayerPoints.jar</systemPath>
</dependency>
<!-- 龙核 -->
<dependency>
<groupId>DragonCore</groupId>
<artifactId>DragonCore</artifactId>
<version>2.4.1</version>
<scope>system</scope>
<systemPath>${project.basedir}/lib/DragonCore-2.4.1.jar</systemPath>
</dependency>
</dependencies>
<build> <repositories>
<finalName>${project.artifactId}</finalName> <repository>
<resources> <id>yumc-repo</id>
<resource> <url>https://repo.yumc.pw/repository/maven-public/</url>
<directory>src/main/resources</directory> </repository>
<filtering>true</filtering> </repositories>
</resource>
</resources> <build>
<!-- lock down plugins versions to avoid using Maven defaults (may be moved to parent pom) --> <finalName>${project.artifactId}</finalName>
<plugins> <resources>
<!-- Maven clean plugin--> <resource>
<plugin> <directory>src/main/resources</directory>
<groupId>org.apache.maven.plugins</groupId> <filtering>true</filtering>
<artifactId>maven-shade-plugin</artifactId> </resource>
<version>2.4.3</version> </resources>
<configuration> <!-- lock down plugins versions to avoid using Maven defaults (may be moved to parent pom) -->
<createDependencyReducedPom>false</createDependencyReducedPom> <plugins>
<minimizeJar>true</minimizeJar> <!-- ProGuard -->
<artifactSet> <plugin>
<includes> <groupId>com.github.wvengen</groupId>
<include>pw.yumc:YumCore</include> <artifactId>proguard-maven-plugin</artifactId>
</includes> <version>2.2.0</version>
</artifactSet> <executions>
<relocations> <execution>
<relocation> <phase>package</phase>
<pattern>pw.yumc.YumCore</pattern> <goals>
<shadedPattern>${project.groupId}.${project.artifactId}</shadedPattern> <goal>proguard</goal>
</relocation> </goals>
</relocations> <configuration>
</configuration> <options>
<executions> <option>-repackageclasses \ʼ.ʽ.ʾ.${project.artifactId}</option>
<execution> <option>-keep class ${project.groupId}.${project.artifactId}.${project.artifactId}
<phase>package</phase> </option>
<goals> <option>-keep class
<goal>shade</goal> ${project.groupId}.${project.artifactId}.${project.artifactId}Bungee
</goals> </option>
</execution> </options>
</executions> <libs>
</plugin> <lib>${java.home}/lib/rt.jar</lib>
<!-- ProGuard --> </libs>
<plugin> </configuration>
<groupId>com.github.wvengen</groupId> </execution>
<artifactId>proguard-maven-plugin</artifactId> </executions>
<version>2.2.0</version> </plugin>
<executions> </plugins>
<execution> </build>
<phase>package</phase>
<goals>
<goal>proguard</goal>
</goals>
<configuration>
<options>
<option>-repackageclasses \ʼ.ʽ.ʾ.${project.artifactId}</option>
<option>-keep class ${project.groupId}.${project.artifactId}.${project.artifactId}</option>
<option>-keep class ${project.groupId}.${project.artifactId}.${project.artifactId}Bungee</option>
</options>
<libs>
<lib>${java.home}/lib/rt.jar</lib>
</libs>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project> </project>

View File

@ -0,0 +1,4 @@
package pw.yumc.DragonLottery;
public class DragonLottery {
}