3
0
Mirror von https://github.com/GeyserMC/Geyser.git synchronisiert 2024-12-26 16:12:46 +01:00

Exclude dependencies already present in servers (only affects plugin)

Dieser Commit ist enthalten in:
RednedEpic 2019-12-08 22:41:50 -06:00
Ursprung 6f5fc4c85c
Commit f59e4672a0
6 geänderte Dateien mit 54 neuen und 76 gelöschten Zeilen

Datei anzeigen

@ -10,12 +10,6 @@
</parent> </parent>
<artifactId>api</artifactId> <artifactId>api</artifactId>
<dependencies> <dependencies>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.18.4</version>
<scope>provided</scope>
</dependency>
<dependency> <dependency>
<groupId>com.google.code.gson</groupId> <groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId> <artifactId>gson</artifactId>

Datei anzeigen

@ -27,7 +27,6 @@
<build> <build>
<finalName>${outputName}-Bukkit</finalName> <finalName>${outputName}-Bukkit</finalName>
<directory>../../target</directory> <directory>../../target</directory>
<defaultGoal>clean install</defaultGoal>
<resources> <resources>
<resource> <resource>
<directory>src/main/resources/</directory> <directory>src/main/resources/</directory>
@ -45,10 +44,27 @@
<goals> <goals>
<goal>shade</goal> <goal>shade</goal>
</goals> </goals>
<configuration>
<minimizeJar>true</minimizeJar>
</configuration>
</execution> </execution>
</executions> </executions>
<configuration> <configuration>
<minimizeJar>true</minimizeJar> <filters>
<filter>
<artifact>*:*</artifact>
<excludes>
<exclude>META-INF/*</exclude>
</excludes>
</filter>
</filters>
<artifactSet>
<excludes>
<exclude>com.google.code.gson:*</exclude>
<exclude>org.yaml:*</exclude>
<exclude>io.netty:*</exclude>
</excludes>
</artifactSet>
</configuration> </configuration>
</plugin> </plugin>
</plugins> </plugins>

Datei anzeigen

@ -27,7 +27,6 @@
<build> <build>
<finalName>${outputName}-BungeeCord</finalName> <finalName>${outputName}-BungeeCord</finalName>
<directory>../../target</directory> <directory>../../target</directory>
<defaultGoal>clean install</defaultGoal>
<resources> <resources>
<resource> <resource>
<directory>src/main/resources/</directory> <directory>src/main/resources/</directory>
@ -45,8 +44,6 @@
<goals> <goals>
<goal>shade</goal> <goal>shade</goal>
</goals> </goals>
</execution>
</executions>
<configuration> <configuration>
<relocations> <relocations>
<relocation> <relocation>
@ -56,6 +53,25 @@
</relocations> </relocations>
<minimizeJar>true</minimizeJar> <minimizeJar>true</minimizeJar>
</configuration> </configuration>
</execution>
</executions>
<configuration>
<filters>
<filter>
<artifact>*:*</artifact>
<excludes>
<exclude>META-INF/*</exclude>
</excludes>
</filter>
</filters>
<artifactSet>
<excludes>
<exclude>com.google.code.gson:*</exclude>
<exclude>org.yaml:*</exclude>
<exclude>io.netty:*</exclude>
</excludes>
</artifactSet>
</configuration>
</plugin> </plugin>
</plugins> </plugins>
</build> </build>

Datei anzeigen

@ -46,7 +46,6 @@
<build> <build>
<finalName>${outputName}</finalName> <finalName>${outputName}</finalName>
<directory>../../target</directory> <directory>../../target</directory>
<defaultGoal>clean install</defaultGoal>
<plugins> <plugins>
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
@ -70,11 +69,11 @@
<goals> <goals>
<goal>shade</goal> <goal>shade</goal>
</goals> </goals>
</execution>
</executions>
<configuration> <configuration>
<minimizeJar>true</minimizeJar> <minimizeJar>true</minimizeJar>
</configuration> </configuration>
</execution>
</executions>
</plugin> </plugin>
</plugins> </plugins>
</build> </build>

Datei anzeigen

@ -92,32 +92,5 @@
</exclusion> </exclusion>
</exclusions> </exclusions>
</dependency> </dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.18.4</version>
<scope>provided</scope>
</dependency>
</dependencies> </dependencies>
<build>
<finalName>${project.artifactId}-${project.version}-noshade</finalName>
<plugins>
<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>
<configuration>
<minimizeJar>true</minimizeJar>
</configuration>
</plugin>
</plugins>
</build>
</project> </project>

38
pom.xml
Datei anzeigen

@ -7,7 +7,7 @@
<artifactId>geyser-parent</artifactId> <artifactId>geyser-parent</artifactId>
<version>parent</version> <version>parent</version>
<packaging>pom</packaging> <packaging>pom</packaging>
<name>GeyserMC</name> <name>Geyser</name>
<description>Allows for players from Minecraft Bedrock Edition to join Minecraft Java Edition servers.</description> <description>Allows for players from Minecraft Bedrock Edition to join Minecraft Java Edition servers.</description>
<url>https://geysermc.org</url> <url>https://geysermc.org</url>
@ -83,32 +83,12 @@
</snapshotRepository> </snapshotRepository>
</distributionManagement> </distributionManagement>
<build> <dependencies>
<defaultGoal>clean install</defaultGoal> <dependency>
<resources> <groupId>org.projectlombok</groupId>
<resource> <artifactId>lombok</artifactId>
<directory>src/main/resources/</directory> <version>1.18.4</version>
<filtering>false</filtering> <scope>provided</scope>
</resource> </dependency>
</resources> </dependencies>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.7.0</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.2.1</version>
<configuration>
<minimizeJar>true</minimizeJar>
</configuration>
</plugin>
</plugins>
</build>
</project> </project>