Files
RealTimeWeather/pom.xml
2025-08-07 17:05:21 +00:00

121 lines
4.9 KiB
XML

<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>dev.viper</groupId>
<artifactId>RealTimeWeather</artifactId>
<version>1.0</version>
<packaging>jar</packaging>
<name>RealTimeWeather</name>
<description>MC Plugin: Echtzeit &amp; Wetter synchronisieren</description>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
</properties>
<repositories>
<repository>
<id>spigot-repo</id>
<url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>
</repository>
<repository>
<id>sonatype</id>
<url>https://oss.sonatype.org/content/groups/public/</url>
</repository>
</repositories>
<dependencies>
<!-- Spigot API -->
<dependency>
<groupId>org.spigotmc</groupId>
<artifactId>spigot-api</artifactId>
<version>1.21.1-R0.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<!-- JSON library -->
<dependency>
<groupId>org.json</groupId>
<artifactId>json</artifactId>
<version>20231013</version>
</dependency>
<!-- Adventure API -->
<dependency>
<groupId>net.kyori</groupId>
<artifactId>adventure-api</artifactId>
<version>4.17.0</version>
</dependency>
<!-- Adventure Platform Bukkit -->
<dependency>
<groupId>net.kyori</groupId>
<artifactId>adventure-platform-bukkit</artifactId>
<version>4.3.3</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.10.1</version>
<configuration>
<source>${maven.compiler.source}</source>
<target>${maven.compiler.target}</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.4.1</version>
<executions>
<execution>
<phase>package</phase>
<goals><goal>shade</goal></goals>
<configuration>
<relocations>
<!-- Shade org.json -->
<relocation>
<pattern>org.json</pattern>
<shadedPattern>dev.viper.shaded.org.json</shadedPattern>
</relocation>
<!-- Shade Adventure API -->
<relocation>
<pattern>net.kyori.adventure</pattern>
<shadedPattern>dev.viper.shaded.net.kyori.adventure</shadedPattern>
</relocation>
<!-- Shade Adventure Platform Bukkit -->
<relocation>
<pattern>net.kyori.platform.bukkit</pattern>
<shadedPattern>dev.viper.shaded.net.kyori.platform.bukkit</shadedPattern>
</relocation>
</relocations>
<createDependencyReducedPom>false</createDependencyReducedPom>
<!-- Minimieren, um die JAR-Größe zu reduzieren (optional) -->
<minimizeJar>true</minimizeJar>
<!-- Filter, um unnötige Klassen auszuschließen -->
<filters>
<filter>
<artifact>*:*</artifact>
<excludes>
<exclude>META-INF/*.SF</exclude>
<exclude>META-INF/*.DSA</exclude>
<exclude>META-INF/*.RSA</exclude>
</excludes>
</filter>
</filters>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>