113 lines
3.9 KiB
XML
113 lines
3.9 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!--
|
|
~ Copyright (C) 2011-2021 lishid. All rights reserved.
|
|
~
|
|
~ This program is free software: you can redistribute it and/or modify
|
|
~ it under the terms of the GNU General Public License as published by
|
|
~ the Free Software Foundation, version 3.
|
|
~
|
|
~ This program is distributed in the hope that it will be useful,
|
|
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
~ GNU General Public License for more details.
|
|
~
|
|
~ You should have received a copy of the GNU General Public License
|
|
~ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
-->
|
|
|
|
<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>
|
|
|
|
<parent>
|
|
<artifactId>openinvparent</artifactId>
|
|
<groupId>com.lishid</groupId>
|
|
<relativePath>../../pom.xml</relativePath>
|
|
<version>4.1.9-SNAPSHOT</version>
|
|
</parent>
|
|
|
|
<artifactId>openinvadapter1_18_R1</artifactId>
|
|
<name>OpenInvAdapter1_18_R1</name>
|
|
|
|
<properties>
|
|
<maven.compiler.source>17</maven.compiler.source>
|
|
<maven.compiler.target>17</maven.compiler.target>
|
|
<spigot.version>1.18-R0.1-SNAPSHOT</spigot.version>
|
|
</properties>
|
|
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>org.spigotmc</groupId>
|
|
<artifactId>spigot-api</artifactId>
|
|
<version>${spigot.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<artifactId>spigot</artifactId>
|
|
<groupId>org.spigotmc</groupId>
|
|
<scope>provided</scope>
|
|
<version>${spigot.version}</version>
|
|
<classifier>remapped-mojang</classifier>
|
|
</dependency>
|
|
<dependency>
|
|
<artifactId>openinvapi</artifactId>
|
|
<groupId>com.lishid</groupId>
|
|
</dependency>
|
|
<dependency>
|
|
<artifactId>openinvplugincore</artifactId>
|
|
<groupId>com.lishid</groupId>
|
|
</dependency>
|
|
<dependency>
|
|
<artifactId>annotations</artifactId>
|
|
<groupId>org.jetbrains</groupId>
|
|
</dependency>
|
|
</dependencies>
|
|
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<artifactId>maven-shade-plugin</artifactId>
|
|
<!-- Cannot use minimizeJar until maven-shade-plugin 3.3.0 releases; ASM used does not support Java 17. -->
|
|
<configuration>
|
|
<minimizeJar>false</minimizeJar>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>net.md-5</groupId>
|
|
<artifactId>specialsource-maven-plugin</artifactId>
|
|
<executions>
|
|
<execution>
|
|
<phase>package</phase>
|
|
<goals>
|
|
<goal>remap</goal>
|
|
</goals>
|
|
<id>remap-obf</id>
|
|
<configuration>
|
|
<srgIn>org.spigotmc:minecraft-server:${spigot.version}:txt:maps-mojang</srgIn>
|
|
<reverse>true</reverse>
|
|
<remappedDependencies>org.spigotmc:spigot:${spigot.version}:jar:remapped-mojang</remappedDependencies>
|
|
<remappedArtifactAttached>true</remappedArtifactAttached>
|
|
<remappedClassifierName>remapped-obf</remappedClassifierName>
|
|
</configuration>
|
|
</execution>
|
|
<execution>
|
|
<phase>package</phase>
|
|
<goals>
|
|
<goal>remap</goal>
|
|
</goals>
|
|
<id>remap-spigot</id>
|
|
<configuration>
|
|
<inputFile>${project.build.directory}/${project.artifactId}-${project.version}-remapped-obf.jar</inputFile>
|
|
<srgIn>org.spigotmc:minecraft-server:${spigot.version}:csrg:maps-spigot</srgIn>
|
|
<remappedDependencies>org.spigotmc:spigot:${spigot.version}:jar:remapped-obf</remappedDependencies>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
|
|
</project>
|