Files
StatusAPI/StatusAPIBridge/pom.xml
T

141 lines
5.7 KiB
XML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?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>net.viper</groupId>
<artifactId>StatusAPIBridge</artifactId>
<version>1.0.3</version>
<packaging>jar</packaging>
<properties>
<!--
Java 21 (LTS) kompatibel mit 1.21.x (benötigt mind. Java 21) und 26.1.x
(benötigt Java 25 zum Starten, akzeptiert aber Java-21-Bytecode problemlos,
da Java abwärtskompatibel ist).
Für einen reinen 26.1.x-Build kann java.version auf 25 gesetzt werden.
-->
<java.version>21</java.version>
<maven.compiler.source>${java.version}</maven.compiler.source>
<maven.compiler.target>${java.version}</maven.compiler.target>
<maven.compiler.release>${java.version}</maven.compiler.release>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<!-- Standard-API-Version (wird durch Profile überschrieben) -->
<spigot.version>1.21.1-R0.1-SNAPSHOT</spigot.version>
</properties>
<repositories>
<repository>
<id>spigot-repo</id>
<url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>
</repository>
<repository>
<id>vault-repo</id>
<url>https://nexus.hc.to/content/repositories/pub_releases/</url>
</repository>
<repository>
<id>placeholderapi</id>
<url>https://repo.extendedclip.com/content/repositories/placeholderapi/</url>
</repository>
</repositories>
<dependencies>
<!-- Spigot API Version wird durch Profil gesteuert -->
<dependency>
<groupId>org.spigotmc</groupId>
<artifactId>spigot-api</artifactId>
<version>${spigot.version}</version>
<scope>provided</scope>
</dependency>
<!-- Vault -->
<dependency>
<groupId>net.milkbowl.vault</groupId>
<artifactId>VaultAPI</artifactId>
<version>1.7</version>
<scope>provided</scope>
</dependency>
<!-- PlaceholderAPI (optional per Reflection genutzt) -->
<dependency>
<groupId>me.clip</groupId>
<artifactId>placeholderapi</artifactId>
<version>2.11.6</version>
<scope>provided</scope>
</dependency>
</dependencies>
<!-- ══════════════════════════════════════════════════════════════════════
Maven-Profile für Multi-Version-Build
mvn package → mc-1.21.1 (Standard, Java 21)
mvn package -P mc-26.1.2 → mc-26.1.2 (Java 21 Bytecode, läuft auf Java 25)
mvn package -P mc-26.1.2-j25 → mc-26.1.2 mit Java-25-Bytecode (benötigt JDK 25)
══════════════════════════════════════════════════════════════════════ -->
<profiles>
<!-- Profil 1: Minecraft 1.21.1 (Standard) -->
<profile>
<id>mc-1.21.1</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<spigot.version>1.21.1-R0.1-SNAPSHOT</spigot.version>
</properties>
</profile>
<!-- Profil 2: Minecraft 26.1.2 kompiliert gegen 1.21.1-API (kompatibel),
erzeugt Java-21-Bytecode der auf Java 25 läuft -->
<profile>
<id>mc-26.1.2</id>
<properties>
<spigot.version>26.1.2-R0.1-SNAPSHOT</spigot.version>
</properties>
</profile>
<!-- Profil 3: Minecraft 26.1.2 mit nativem Java-25-Bytecode.
Benötigt JDK 25 als JAVA_HOME beim Build. -->
<profile>
<id>mc-26.1.2-j25</id>
<properties>
<spigot.version>26.1.2-R0.1-SNAPSHOT</spigot.version>
<java.version>25</java.version>
<maven.compiler.source>25</maven.compiler.source>
<maven.compiler.target>25</maven.compiler.target>
<maven.compiler.release>25</maven.compiler.release>
</properties>
</profile>
</profiles>
<build>
<finalName>StatusAPIBridge</finalName>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.14.0</version>
<configuration>
<source>${java.version}</source>
<target>${java.version}</target>
<release>${java.version}</release>
<encoding>UTF-8</encoding>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.6.0</version>
<executions>
<execution>
<phase>package</phase>
<goals><goal>shade</goal></goals>
<configuration>
<createDependencyReducedPom>false</createDependencyReducedPom>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>