mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-11-13 22:25:44 +01:00
120 lines
3.5 KiB
XML
120 lines
3.5 KiB
XML
<!-- Citizens build file -->
|
|
<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>
|
|
<groupId>net.citizensnpcs</groupId>
|
|
<artifactId>citizens-parent</artifactId>
|
|
<version>2.0.29-SNAPSHOT</version>
|
|
</parent>
|
|
<artifactId>citizens-v1_18_R2</artifactId>
|
|
|
|
<properties>
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
<craftbukkit.version>1.18.2-R0.1-SNAPSHOT</craftbukkit.version>
|
|
</properties>
|
|
|
|
<repositories>
|
|
<repository>
|
|
<id>everything</id>
|
|
<url>http://repo.citizensnpcs.co</url>
|
|
</repository>
|
|
</repositories>
|
|
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>${project.groupId}</groupId>
|
|
<artifactId>citizens-main</artifactId>
|
|
<version>${project.version}</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.spigotmc</groupId>
|
|
<artifactId>spigot</artifactId>
|
|
<version>${craftbukkit.version}</version>
|
|
<classifier>remapped-mojang</classifier>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
</dependencies>
|
|
|
|
<build>
|
|
<defaultGoal>clean package install</defaultGoal>
|
|
<sourceDirectory>${basedir}/src/main/java</sourceDirectory>
|
|
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
<version>3.8.1</version>
|
|
<configuration>
|
|
<compilerId>eclipse</compilerId>
|
|
<source>1.8</source>
|
|
<target>1.8</target>
|
|
</configuration>
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>org.codehaus.plexus</groupId>
|
|
<artifactId>plexus-compiler-eclipse</artifactId>
|
|
<version>2.8.8</version>
|
|
</dependency>
|
|
</dependencies>
|
|
</plugin>
|
|
|
|
<plugin>
|
|
<groupId>net.md-5</groupId>
|
|
<artifactId>specialsource-maven-plugin</artifactId>
|
|
<version>1.2.2</version>
|
|
<executions>
|
|
<execution>
|
|
<phase>package</phase>
|
|
<goals>
|
|
<goal>remap</goal>
|
|
</goals>
|
|
<id>remap-obf</id>
|
|
<configuration>
|
|
<srgIn>org.spigotmc:minecraft-server:${craftbukkit.version}:txt:maps-mojang</srgIn>
|
|
<reverse>true</reverse>
|
|
<remappedDependencies>org.spigotmc:spigot:${craftbukkit.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:${craftbukkit.version}:csrg:maps-spigot</srgIn>
|
|
<remappedDependencies>org.spigotmc:spigot:${craftbukkit.version}:jar:remapped-obf</remappedDependencies>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</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-shade-plugin</artifactId>
|
|
<version>3.2.1</version>
|
|
<executions>
|
|
<execution>
|
|
<phase>package</phase>
|
|
<goals>
|
|
<goal>shade</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</project>
|