159 lines
6.8 KiB
XML
159 lines
6.8 KiB
XML
<?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"
|
||
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>
|
||
|
||
<groupId>de.serverpulse</groupId>
|
||
<artifactId>ServerPulse</artifactId>
|
||
<version>1.0.1</version>
|
||
<packaging>jar</packaging>
|
||
|
||
<name>ServerPulse</name>
|
||
<description>Monitoring & Analytics Suite – Spigot + Paper + BungeeCord (unified JAR)</description>
|
||
|
||
<properties>
|
||
<maven.compiler.source>17</maven.compiler.source>
|
||
<maven.compiler.target>17</maven.compiler.target>
|
||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||
</properties>
|
||
|
||
<repositories>
|
||
<!-- PaperMC: Paper API + BungeeCord API 26.1 -->
|
||
<repository>
|
||
<id>papermc</id>
|
||
<url>https://repo.papermc.io/repository/maven-public/</url>
|
||
</repository>
|
||
<!-- Spigot -->
|
||
<repository>
|
||
<id>spigot-repo</id>
|
||
<url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>
|
||
</repository>
|
||
</repositories>
|
||
|
||
<dependencies>
|
||
<!-- ══════════════════════════════════════
|
||
SPIGOT / PAPER API (provided)
|
||
══════════════════════════════════════ -->
|
||
<dependency>
|
||
<groupId>io.papermc.paper</groupId>
|
||
<artifactId>paper-api</artifactId>
|
||
<version>1.21.4-R0.1-SNAPSHOT</version>
|
||
<scope>provided</scope>
|
||
</dependency>
|
||
|
||
<!-- ══════════════════════════════════════
|
||
BUNGEECORD API (provided)
|
||
══════════════════════════════════════ -->
|
||
<dependency>
|
||
<groupId>net.md-5</groupId>
|
||
<artifactId>bungeecord-api</artifactId>
|
||
<version>26.1-R0.1-SNAPSHOT</version>
|
||
<scope>provided</scope>
|
||
</dependency>
|
||
|
||
<!-- ══════════════════════════════════════
|
||
SHADED DEPENDENCIES
|
||
══════════════════════════════════════ -->
|
||
|
||
<!-- MySQL Connector -->
|
||
<dependency>
|
||
<groupId>com.mysql</groupId>
|
||
<artifactId>mysql-connector-j</artifactId>
|
||
<version>8.3.0</version>
|
||
</dependency>
|
||
|
||
<!-- HikariCP Connection Pool -->
|
||
<dependency>
|
||
<groupId>com.zaxxer</groupId>
|
||
<artifactId>HikariCP</artifactId>
|
||
<version>5.1.0</version>
|
||
</dependency>
|
||
|
||
<!-- Gson (JSON + Discord + API) -->
|
||
<dependency>
|
||
<groupId>com.google.code.gson</groupId>
|
||
<artifactId>gson</artifactId>
|
||
<version>2.10.1</version>
|
||
</dependency>
|
||
|
||
<!-- OkHttp (Discord Webhooks + InfluxDB Push) -->
|
||
<dependency>
|
||
<groupId>com.squareup.okhttp3</groupId>
|
||
<artifactId>okhttp</artifactId>
|
||
<version>4.12.0</version>
|
||
</dependency>
|
||
</dependencies>
|
||
|
||
<build>
|
||
<finalName>ServerPulse-${project.version}</finalName>
|
||
<plugins>
|
||
|
||
<!-- Maven Shade: Alles in eine JAR -->
|
||
<plugin>
|
||
<groupId>org.apache.maven.plugins</groupId>
|
||
<artifactId>maven-shade-plugin</artifactId>
|
||
<version>3.5.2</version>
|
||
<executions>
|
||
<execution>
|
||
<phase>package</phase>
|
||
<goals><goal>shade</goal></goals>
|
||
<configuration>
|
||
<createDependencyReducedPom>false</createDependencyReducedPom>
|
||
<!-- Relocation verhindert Konflikte mit anderen Plugins -->
|
||
<relocations>
|
||
<relocation>
|
||
<pattern>com.zaxxer.hikari</pattern>
|
||
<shadedPattern>de.serverpulse.libs.hikari</shadedPattern>
|
||
</relocation>
|
||
<relocation>
|
||
<pattern>com.google.gson</pattern>
|
||
<shadedPattern>de.serverpulse.libs.gson</shadedPattern>
|
||
</relocation>
|
||
<relocation>
|
||
<pattern>okhttp3</pattern>
|
||
<shadedPattern>de.serverpulse.libs.okhttp3</shadedPattern>
|
||
</relocation>
|
||
<relocation>
|
||
<pattern>okio</pattern>
|
||
<shadedPattern>de.serverpulse.libs.okio</shadedPattern>
|
||
</relocation>
|
||
<relocation>
|
||
<pattern>com.mysql</pattern>
|
||
<shadedPattern>de.serverpulse.libs.mysql</shadedPattern>
|
||
</relocation>
|
||
<relocation>
|
||
<pattern>kotlin</pattern>
|
||
<shadedPattern>de.serverpulse.libs.kotlin</shadedPattern>
|
||
</relocation>
|
||
</relocations>
|
||
<filters>
|
||
<filter>
|
||
<artifact>*:*</artifact>
|
||
<excludes>
|
||
<exclude>META-INF/*.SF</exclude>
|
||
<exclude>META-INF/*.DSA</exclude>
|
||
<exclude>META-INF/*.RSA</exclude>
|
||
<exclude>META-INF/MANIFEST.MF</exclude>
|
||
</excludes>
|
||
</filter>
|
||
</filters>
|
||
</configuration>
|
||
</execution>
|
||
</executions>
|
||
</plugin>
|
||
|
||
<plugin>
|
||
<groupId>org.apache.maven.plugins</groupId>
|
||
<artifactId>maven-compiler-plugin</artifactId>
|
||
<version>3.13.0</version>
|
||
<configuration>
|
||
<source>17</source>
|
||
<target>17</target>
|
||
</configuration>
|
||
</plugin>
|
||
|
||
</plugins>
|
||
</build>
|
||
</project>
|