HolographicDisplays/plugin/pom.xml

173 lines
6.9 KiB
XML
Raw Normal View History

<?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"
2020-11-10 10:27:41 +01:00
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>
2020-11-10 10:27:41 +01:00
<parent>
<groupId>me.filoghost.holographicdisplays</groupId>
<artifactId>holographicdisplays-parent</artifactId>
<version>3.0.0-SNAPSHOT</version>
</parent>
2020-11-10 10:27:41 +01:00
<artifactId>holographicdisplays-plugin</artifactId>
<name>HolographicDisplays Plugin</name>
2020-11-10 10:27:41 +01:00
<dependencies>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>holographicdisplays-api</artifactId>
</dependency>
2020-11-10 10:27:41 +01:00
<dependency>
<groupId>${project.groupId}</groupId>
2021-06-20 11:14:26 +02:00
<artifactId>holographicdisplays-common</artifactId>
2020-11-10 10:27:41 +01:00
</dependency>
2020-11-10 10:27:41 +01:00
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>holographicdisplays-core</artifactId>
2022-03-05 17:46:52 +01:00
</dependency>
2020-11-10 10:27:41 +01:00
<dependency>
<groupId>org.spigotmc</groupId>
<artifactId>spigot-api</artifactId>
</dependency>
<dependency>
<groupId>me.clip</groupId>
<artifactId>placeholderapi</artifactId>
</dependency>
2020-11-10 10:27:41 +01:00
<dependency>
<groupId>org.bstats</groupId>
<artifactId>bstats-bukkit-lite</artifactId>
</dependency>
2021-06-20 17:23:48 +02:00
2020-11-10 10:27:41 +01:00
<dependency>
<groupId>me.filoghost.updatechecker</groupId>
<artifactId>updatechecker</artifactId>
</dependency>
2021-06-20 17:23:48 +02:00
<dependency>
<groupId>me.filoghost.fcommons</groupId>
<artifactId>fcommons</artifactId>
</dependency>
2020-11-10 10:27:41 +01:00
</dependencies>
2020-11-10 10:27:41 +01:00
<build>
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
</resource>
<resource>
<directory>..</directory>
<includes>
<include>LICENSE.txt</include>
<include>THIRD-PARTY.txt</include>
</includes>
</resource>
</resources>
2021-06-20 17:23:48 +02:00
2020-11-10 10:27:41 +01:00
<plugins>
<plugin>
2020-11-11 22:33:03 +01:00
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
2020-11-10 10:27:41 +01:00
<executions>
<!-- Appends build number to plugin version on SNAPSHOT builds. -->
<execution>
<id>set-plugin-version</id>
<phase>validate</phase>
<goals>
2020-11-11 22:33:03 +01:00
<goal>bsh-property</goal>
2020-11-10 10:27:41 +01:00
</goals>
<configuration>
2020-11-11 22:33:03 +01:00
<properties>
<property>pluginVersion</property>
</properties>
<source>
projectVersion = project.version;
buildNumber = System.getenv("BUILD_NUMBER");
String pluginVersion;
if (buildNumber != null @and projectVersion.contains("SNAPSHOT")) {
pluginVersion = projectVersion + "-b" + buildNumber;
} else {
pluginVersion = projectVersion;
}
print("Project version: " + projectVersion);
print("Build number: " + buildNumber);
print("Computed plugin version: " + pluginVersion);
</source>
2020-11-10 10:27:41 +01:00
</configuration>
</execution>
</executions>
</plugin>
2021-06-20 17:23:48 +02:00
2020-11-10 10:27:41 +01:00
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<manifest>
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
</manifest>
<manifestEntries>
2020-11-11 22:33:03 +01:00
<Implementation-Version>${pluginVersion}</Implementation-Version>
2020-11-10 10:27:41 +01:00
</manifestEntries>
</archive>
</configuration>
</plugin>
2021-06-20 17:23:48 +02:00
2020-11-10 10:27:41 +01:00
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<configuration>
<createDependencyReducedPom>false</createDependencyReducedPom>
<shadedArtifactAttached>false</shadedArtifactAttached>
<artifactSet>
<includes>
<include>${project.groupId}:*</include>
<include>org.bstats</include>
<include>me.filoghost.updatechecker</include>
<include>me.filoghost.fcommons</include>
2020-11-10 10:27:41 +01:00
</includes>
</artifactSet>
<filters>
<filter>
<artifact>*:*</artifact>
<excludes>
<exclude>META-INF/maven/</exclude>
</excludes>
</filter>
</filters>
<relocations>
<relocation>
<pattern>org.bstats.bukkit</pattern>
<shadedPattern>me.filoghost.holographicdisplays.plugin.lib.metrics</shadedPattern>
2020-11-10 10:27:41 +01:00
</relocation>
<relocation>
<pattern>me.filoghost.updatechecker</pattern>
<shadedPattern>me.filoghost.holographicdisplays.plugin.lib.updater</shadedPattern>
2020-11-10 10:27:41 +01:00
</relocation>
<relocation>
<pattern>me.filoghost.fcommons</pattern>
<shadedPattern>me.filoghost.holographicdisplays.plugin.lib.fcommons</shadedPattern>
</relocation>
2020-11-10 10:27:41 +01:00
</relocations>
</configuration>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>