-
-
Save KastenKlicker/6ff45dbd5b45212853651bbd219b03a2 to your computer and use it in GitHub Desktop.
Velocity plugin Guava dependency problem
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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.kastenklicker</groupId> | |
<artifactId>ActivateServer</artifactId> | |
<version>0.0.1</version> | |
<name>activateServer</name> | |
<properties> | |
<maven.compiler.source>11</maven.compiler.source> | |
<maven.compiler.target>11</maven.compiler.target> | |
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | |
</properties> | |
<repositories> | |
<repository> | |
<id>papermc</id> | |
<url>https://repo.papermc.io/repository/maven-public/</url> | |
</repository> | |
</repositories> | |
<dependencyManagement> | |
<dependencies> | |
<dependency> | |
<groupId>com.google.guava</groupId> | |
<artifactId>guava</artifactId> | |
<version>32.1.2-jre</version> | |
</dependency> | |
</dependencies> | |
</dependencyManagement> | |
<dependencies> | |
<!-- https://mvnrepository.com/artifact/com.google.cloud/google-cloud-compute --> | |
<dependency> | |
<groupId>com.google.cloud</groupId> | |
<artifactId>google-cloud-compute</artifactId> | |
<version>1.33.0</version> | |
</dependency> | |
<dependency> | |
<groupId>com.velocitypowered</groupId> | |
<artifactId>velocity-api</artifactId> | |
<version>3.2.0-SNAPSHOT</version> | |
<scope>provided</scope> | |
<exclusions> | |
<exclusion> | |
<groupId>com.google.guava</groupId> | |
<artifactId>guava</artifactId> | |
</exclusion> | |
</exclusions> | |
</dependency> | |
</dependencies> | |
<build> | |
<plugins> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-shade-plugin</artifactId> | |
<version>3.5.0</version> | |
<executions> | |
<execution> | |
<phase>package</phase> | |
<goals> | |
<goal>shade</goal> | |
</goals> | |
<configuration> | |
<filters> | |
<filter> | |
<artifact>com.google.guava:guava</artifact> | |
<includes> | |
<include>**</include> | |
</includes> | |
</filter> | |
<filter> | |
<artifact>*:*</artifact> | |
<excludes> | |
<exclude>META-INF/*.SF</exclude> | |
<exclude>META-INF/*.DSA</exclude> | |
<exclude>META-INF/*.RSA</exclude> | |
<exclude>META-INF/*.MF</exclude> | |
<exclude>META-INF/*.txt</exclude> | |
<exclude>META-INF/LICENSE</exclude> | |
<exclude>META-INF/NOTICE</exclude> | |
<exclude>META-INF/DEPENDENCIES</exclude> | |
</excludes> | |
</filter> | |
</filters> | |
</configuration> | |
</execution> | |
</executions> | |
</plugin> | |
</plugins> | |
</build> | |
</project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment