Skip to content

Commit ff1b80a

Browse files
committed
Build fixups
1 parent 7bebb0a commit ff1b80a

4 files changed

Lines changed: 46 additions & 22 deletions

File tree

BungeeCord-Patches/0001-POM-Changes.patch

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From 86a75ef5a2d727172ec13f240723e6b9e45cd4e0 Mon Sep 17 00:00:00 2001
1+
From e98674a788d5a10f52f7714314d959be452e147b Mon Sep 17 00:00:00 2001
22
From: Tux <write@imaginarycode.com>
33
Date: Thu, 19 May 2016 19:33:31 +0200
44
Subject: [PATCH] POM Changes
@@ -621,15 +621,21 @@ index afb805d1..be74fd49 100644
621621
<license>
622622
<name>BSD-3-Clause</name>
623623
diff --git a/pom.xml b/pom.xml
624-
index 18bbe6f9..e0b8b453 100644
624+
index 18bbe6f9..e956060c 100644
625625
--- a/pom.xml
626626
+++ b/pom.xml
627-
@@ -3,18 +3,18 @@
627+
@@ -3,18 +3,24 @@
628628
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
629629
<modelVersion>4.0.0</modelVersion>
630630

631631
- <groupId>net.md-5</groupId>
632632
- <artifactId>bungeecord-parent</artifactId>
633+
+ <parent>
634+
+ <groupId>io.github.waterfallmc</groupId>
635+
+ <artifactId>waterfall-super</artifactId>
636+
+ <version>26.1-R0.1-SNAPSHOT</version>
637+
+ <relativePath>../pom.xml</relativePath>
638+
+ </parent>
633639
+ <groupId>io.github.waterfallmc</groupId>
634640
+ <artifactId>waterfall-parent</artifactId>
635641
<version>26.1-R0.1-SNAPSHOT</version>
@@ -651,7 +657,7 @@ index 18bbe6f9..e0b8b453 100644
651657
</organization>
652658
<licenses>
653659
<license>
654-
@@ -26,7 +26,22 @@
660+
@@ -26,7 +32,22 @@
655661

656662
<developers>
657663
<developer>
@@ -675,7 +681,7 @@ index 18bbe6f9..e0b8b453 100644
675681
</developer>
676682
</developers>
677683

678-
@@ -50,28 +65,24 @@
684+
@@ -50,28 +71,24 @@
679685
</modules>
680686

681687
<scm>
@@ -714,15 +720,15 @@ index 18bbe6f9..e0b8b453 100644
714720
</distributionManagement>
715721

716722
<properties>
717-
@@ -155,6 +166,7 @@
723+
@@ -155,6 +172,7 @@
718724
</execution>
719725
</executions>
720726
</plugin>
721727
+ <!-- Use latest version of the javadoc plugin, fixes some issues with the javadoc tool on recent JDK builds on macOS at least -->
722728
<plugin>
723729
<groupId>org.apache.maven.plugins</groupId>
724730
<artifactId>maven-compiler-plugin</artifactId>
725-
@@ -170,6 +182,14 @@
731+
@@ -170,6 +188,14 @@
726732
</configuration>
727733
</plugin>
728734
<plugin>
@@ -737,15 +743,15 @@ index 18bbe6f9..e0b8b453 100644
737743
<groupId>org.apache.maven.plugins</groupId>
738744
<artifactId>maven-checkstyle-plugin</artifactId>
739745
<version>3.6.0</version>
740-
@@ -194,6 +214,7 @@
746+
@@ -194,6 +220,7 @@
741747
</dependency>
742748
</dependencies>
743749
</plugin>
744750
+ -->
745751
<plugin>
746752
<groupId>org.apache.maven.plugins</groupId>
747753
<artifactId>maven-enforcer-plugin</artifactId>
748-
@@ -257,6 +278,15 @@
754+
@@ -257,6 +284,15 @@
749755
</goals>
750756
</execution>
751757
</executions>

BungeeCord-Patches/0033-Use-Log4j2-for-logging-and-TerminalConsoleAppender-f.patch

Lines changed: 27 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From 067dfc16c47dc4d8fef5ddf6294ed98a90a18f4a Mon Sep 17 00:00:00 2001
1+
From ff0ec8e8ae8ff4f90cd8e0bde2f1cf1286380c00 Mon Sep 17 00:00:00 2001
22
From: Minecrell <minecrell@minecrell.net>
33
Date: Fri, 22 Sep 2017 12:46:47 +0200
44
Subject: [PATCH] Use Log4j2 for logging and TerminalConsoleAppender for
@@ -38,10 +38,10 @@ index fd082dcd..d090e151 100644
3838
</build>
3939
diff --git a/log4j/pom.xml b/log4j/pom.xml
4040
new file mode 100644
41-
index 00000000..8387393c
41+
index 00000000..eb42c916
4242
--- /dev/null
4343
+++ b/log4j/pom.xml
44-
@@ -0,0 +1,51 @@
44+
@@ -0,0 +1,47 @@
4545
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4646
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4747
+ <modelVersion>4.0.0</modelVersion>
@@ -61,10 +61,6 @@ index 00000000..8387393c
6161
+ <name>Waterfall-Log4J</name>
6262
+ <description>Simplistic and performant Log4j2 based logger and console API designed for use with Waterfall and Minecraft related applications.</description>
6363
+
64-
+ <properties>
65-
+ <log4j2.version>2.20.0</log4j2.version>
66-
+ </properties>
67-
+
6864
+ <dependencies>
6965
+ <!-- Log4j -->
7066
+ <dependency>
@@ -235,10 +231,10 @@ index 00000000..cfd039cd
235231
+ </Loggers>
236232
+</Configuration>
237233
diff --git a/pom.xml b/pom.xml
238-
index e0b8b453..b4371768 100644
234+
index e956060c..40a1cc35 100644
239235
--- a/pom.xml
240236
+++ b/pom.xml
241-
@@ -52,14 +52,15 @@
237+
@@ -58,14 +58,15 @@
242238
<module>config</module>
243239
<module>dialog</module>
244240
<module>event</module>
@@ -256,6 +252,28 @@ index e0b8b453..b4371768 100644
256252
<module>native</module>
257253
<module>nbt</module>
258254
</modules>
255+
@@ -96,6 +97,7 @@
256+
<lombok.version>1.18.44</lombok.version>
257+
<maven.compiler.release>17</maven.compiler.release>
258+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
259+
+ <log4j2.version>2.25.3</log4j2.version>
260+
</properties>
261+
262+
<!-- We really shouldn't depend on external repositories -->
263+
@@ -184,6 +186,13 @@
264+
<artifactId>lombok</artifactId>
265+
<version>${lombok.version}</version>
266+
</annotationProcessorPath>
267+
+ <!-- Waterfall start - Use log4j2 for logging -->
268+
+ <annotationProcessorPath>
269+
+ <groupId>org.apache.logging.log4j</groupId>
270+
+ <artifactId>log4j-core</artifactId>
271+
+ <version>${log4j2.version}</version>
272+
+ </annotationProcessorPath>
273+
+ <!-- Waterfall end -->
274+
</annotationProcessorPaths>
275+
</configuration>
276+
</plugin>
259277
diff --git a/proxy/pom.xml b/proxy/pom.xml
260278
index 8c25ae3a..07cf55ba 100644
261279
--- a/proxy/pom.xml

BungeeCord-Patches/0035-Allow-plugins-to-use-SLF4J-for-logging.patch

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From db26a22ee551104e7e5b649bf741542e9d7d9842 Mon Sep 17 00:00:00 2001
1+
From fe4c03bd7e15cf2f6af289e30488b0972758f3cf Mon Sep 17 00:00:00 2001
22
From: Minecrell <minecrell@minecrell.net>
33
Date: Fri, 22 Sep 2017 13:15:09 +0200
44
Subject: [PATCH] Allow plugins to use SLF4J for logging
@@ -23,10 +23,10 @@ index 628ce968..faa06a92 100644
2323
* Called when the plugin has just been loaded. Most of the proxy will not
2424
* be initialized, so only use it for registering
2525
diff --git a/log4j/pom.xml b/log4j/pom.xml
26-
index 8387393c..f9af0d5b 100644
26+
index eb42c916..c4692781 100644
2727
--- a/log4j/pom.xml
2828
+++ b/log4j/pom.xml
29-
@@ -41,6 +41,24 @@
29+
@@ -37,6 +37,24 @@
3030
<version>${log4j2.version}</version>
3131
<scope>compile</scope>
3232
</dependency>

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
<groupId>io.github.waterfallmc</groupId>
77
<artifactId>waterfall-super</artifactId>
8-
<version>dev-SNAPSHOT</version>
8+
<version>26.1-R0.1-SNAPSHOT</version>
99
<packaging>pom</packaging>
1010

1111
<name>Waterfall-Super</name>

0 commit comments

Comments
 (0)