Add plumbing for automatic library support

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot 2021-05-15 09:05:18 +10:00
parent 9764b58089
commit 59f6e7fdd8

View File

@ -76,6 +76,38 @@
<version>5.1.49</version>
<scope>runtime</scope>
</dependency>
<!-- add these back in as they are not exposed by the API -->
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-resolver-provider</artifactId>
<version>3.8.1</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.apache.maven.resolver</groupId>
<artifactId>maven-resolver-connector-basic</artifactId>
<version>1.6.2</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.apache.maven.resolver</groupId>
<artifactId>maven-resolver-transport-http</artifactId>
<version>1.6.2</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-slf4j-impl</artifactId>
<version>2.8.1</version>
<scope>compile</scope>
<exclusions>
<!-- included in minecraft-server -->
<exclusion>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-api</artifactId>
</exclusion>
</exclusions>
</dependency>
<!-- testing -->
<dependency>
<groupId>junit</groupId>
@ -201,6 +233,26 @@
<pattern>org.apache.commons.lang3</pattern>
<shadedPattern>org.bukkit.craftbukkit.libs.org.apache.commons.lang3</shadedPattern>
</relocation>
<relocation>
<pattern>org.apache.http</pattern>
<shadedPattern>org.bukkit.craftbukkit.libs.org.apache.http</shadedPattern>
</relocation>
<relocation>
<pattern>org.apache.maven</pattern>
<shadedPattern>org.bukkit.craftbukkit.libs.org.apache.maven</shadedPattern>
</relocation>
<relocation>
<pattern>org.codehaus.plexus</pattern>
<shadedPattern>org.bukkit.craftbukkit.libs.org.codehaus.plexus</shadedPattern>
</relocation>
<relocation>
<pattern>org.eclipse.aether</pattern>
<shadedPattern>org.bukkit.craftbukkit.libs.org.eclipse.aether</shadedPattern>
</relocation>
<relocation>
<pattern>org.eclipse.sisu</pattern>
<shadedPattern>org.bukkit.craftbukkit.libs.org.eclipse.sisu</shadedPattern>
</relocation>
<relocation>
<pattern>org.objectweb.asm</pattern>
<shadedPattern>org.bukkit.craftbukkit.libs.org.objectweb.asm</shadedPattern>