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

92
pom.xml
View File

@ -5,7 +5,7 @@
<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>
@ -20,53 +20,19 @@
<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>
<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> </dependency>
</dependencies> </dependencies>
<repositories>
<repository>
<id>yumc-repo</id>
<url>https://repo.yumc.pw/repository/maven-public/</url>
</repository>
</repositories>
<build> <build>
<finalName>${project.artifactId}</finalName> <finalName>${project.artifactId}</finalName>
<resources> <resources>
@ -77,35 +43,6 @@
</resources> </resources>
<!-- lock down plugins versions to avoid using Maven defaults (may be moved to parent pom) --> <!-- lock down plugins versions to avoid using Maven defaults (may be moved to parent pom) -->
<plugins> <plugins>
<!-- Maven clean plugin-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>2.4.3</version>
<configuration>
<createDependencyReducedPom>false</createDependencyReducedPom>
<minimizeJar>true</minimizeJar>
<artifactSet>
<includes>
<include>pw.yumc:YumCore</include>
</includes>
</artifactSet>
<relocations>
<relocation>
<pattern>pw.yumc.YumCore</pattern>
<shadedPattern>${project.groupId}.${project.artifactId}</shadedPattern>
</relocation>
</relocations>
</configuration>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- ProGuard --> <!-- ProGuard -->
<plugin> <plugin>
<groupId>com.github.wvengen</groupId> <groupId>com.github.wvengen</groupId>
@ -120,8 +57,11 @@
<configuration> <configuration>
<options> <options>
<option>-repackageclasses \ʼ.ʽ.ʾ.${project.artifactId}</option> <option>-repackageclasses \ʼ.ʽ.ʾ.${project.artifactId}</option>
<option>-keep class ${project.groupId}.${project.artifactId}.${project.artifactId}</option> <option>-keep class ${project.groupId}.${project.artifactId}.${project.artifactId}
<option>-keep class ${project.groupId}.${project.artifactId}.${project.artifactId}Bungee</option> </option>
<option>-keep class
${project.groupId}.${project.artifactId}.${project.artifactId}Bungee
</option>
</options> </options>
<libs> <libs>
<lib>${java.home}/lib/rt.jar</lib> <lib>${java.home}/lib/rt.jar</lib>

View File

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