Skip to content

Commit

Permalink
Shade in commons.io for better compatibility, 1.18 update
Browse files Browse the repository at this point in the history
  • Loading branch information
DrkMatr1984 committed Dec 31, 2021
1 parent 2c5533e commit 8e90862
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 9 deletions.
42 changes: 35 additions & 7 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
<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">
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<modelVersion>4.0.0</modelVersion>

<name>ChatBubbles</name>
<description>Creates chat Bubbles over player's heads when they chat</description>

<groupId>me.TheTealViper</groupId>
<artifactId>chatbubbles</artifactId>
<version>1.17.1.a.1</version>
<version>1.18</version>

<repositories>
<repository>
Expand Down Expand Up @@ -37,13 +39,13 @@
<dependency>
<groupId>org.spigotmc</groupId>
<artifactId>spigot-api</artifactId>
<version>1.17.1-R0.1-SNAPSHOT</version>
<version>1.18.1-R0.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.bukkit</groupId>
<artifactId>craftbukkit</artifactId>
<version>1.17.1-R0.1-SNAPSHOT</version>
<version>1.18.1-R0.1-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>com.gmail.filoghost.holographicdisplays</groupId>
Expand Down Expand Up @@ -79,6 +81,12 @@
<type>jar</type>
<scope>provided</scope>
</dependency>
<dependency>
<artifactId>commons-io</artifactId>
<groupId>commons-io</groupId>
<scope>compile</scope>
<version>2.5</version>
</dependency>
</dependencies>

<build>
Expand All @@ -88,10 +96,30 @@
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<source>16</source>
<target>16</target>
<source>17</source>
<target>17</target>
</configuration>
</plugin>
<plugin>
<artifactId>maven-shade-plugin</artifactId>
<groupId>org.apache.maven.plugins</groupId>
<version>3.0.0</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<artifactSet>
<includes>
<include>commons-io:commons-io</include>
</includes>
</artifactSet>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

import org.bukkit.Bukkit;
import org.bukkit.configuration.file.YamlConfiguration;
import org.bukkit.craftbukkit.libs.org.apache.commons.io.FileUtils;
import org.apache.commons.io.FileUtils;
import org.bukkit.event.Listener;
import org.bukkit.plugin.java.JavaPlugin;

Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: "ChatBubbles"
author: TheTealViper
version: "1.17.1.a.1"
version: "1.18"
api-version: 1.16
description: "ChatBubbles above players' heads"
main: me.TheTealViper.chatbubbles.ChatBubbles
Expand Down

0 comments on commit 8e90862

Please sign in to comment.