Skip to content
This repository was archived by the owner on Feb 5, 2026. It is now read-only.

Commit 56d0941

Browse files
authored
Merge pull request #37 from epoh-r7/LOG-21519
LOG-21519 Upgrade dependencies and remove support for log4j
2 parents 1be7327 + b7be507 commit 56d0941

File tree

14 files changed

+96
-415
lines changed

14 files changed

+96
-415
lines changed

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ Logging To InsightOps from Java
66

77
InsightOps currently supports logging from Java using the following logging libraries:
88

9-
* [Log4J](https://insightops.help.rapid7.com/docs/log4j-log4j2)
109
* [Log4J2](https://insightops.help.rapid7.com/docs/log4j-log4j2)
1110
* [Logback](https://insightops.help.rapid7.com/docs/logback)
1211
* [Java Util Logging](https://insightops.help.rapid7.com/docs/java-util-logging)

configFiles/log4j.properties.example

Lines changed: 0 additions & 8 deletions
This file was deleted.

configFiles/log4j.xml.example

Lines changed: 0 additions & 22 deletions
This file was deleted.

pom.xml

Lines changed: 17 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
<properties>
55
<additionalparam>-Xdoclint:none</additionalparam>
66

7-
<jackson.version>2.12.1</jackson.version>
8-
<log4j.version>2.17.1</log4j.version>
9-
<junit.version>4.13.1</junit.version>
10-
<mockito.version>1.9.5</mockito.version>
7+
<jackson.version>2.15.0</jackson.version>
8+
<log4j2.version>2.20.0</log4j2.version>
9+
<junit.version>5.9.3</junit.version>
10+
<mockito.version>4.11.0</mockito.version>
1111

12-
<disruptor.version>3.3.6</disruptor.version>
12+
<disruptor.version>4.0.0.RC1</disruptor.version>
1313
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
1414
</properties>
1515

@@ -18,8 +18,8 @@
1818
<artifactId>r7insight_java</artifactId>
1919
<packaging>jar</packaging>
2020
<name>r7insight_java</name>
21-
<version>3.0.16-SNAPSHOT</version>
22-
<description>Contains logback, log4j, and log4j2 appenders that will send log data to Logentries</description>
21+
<version>4.0.0-SNAPSHOT</version>
22+
<description>Contains logback and log4j2 appenders that will send log data to Logentries</description>
2323
<url>https://github.com/rapid7/r7insight_java</url>
2424

2525
<licenses>
@@ -60,7 +60,7 @@
6060
<plugin>
6161
<groupId>org.apache.maven.plugins</groupId>
6262
<artifactId>maven-compiler-plugin</artifactId>
63-
<version>2.0.2</version>
63+
<version>3.8.1</version>
6464
<configuration>
6565
<source>1.8</source>
6666
<target>1.8</target>
@@ -70,7 +70,7 @@
7070
<plugin>
7171
<groupId>org.apache.maven.plugins</groupId>
7272
<artifactId>maven-surefire-plugin</artifactId>
73-
<version>2.19.1</version>
73+
<version>3.1.0</version>
7474
<configuration>
7575
<systemPropertyVariables>
7676
<!--to Test tls/ssl mode connections in unit tests-->
@@ -110,7 +110,7 @@
110110
<plugin>
111111
<groupId>org.apache.maven.plugins</groupId>
112112
<artifactId>maven-javadoc-plugin</artifactId>
113-
<version>3.1.1</version>
113+
<version>3.5.0</version>
114114
<executions>
115115
<execution>
116116
<id>attach-javadocs</id>
@@ -123,15 +123,15 @@
123123
<plugin>
124124
<groupId>org.apache.maven.plugins</groupId>
125125
<artifactId>maven-release-plugin</artifactId>
126-
<version>2.5</version>
126+
<version>3.0.0</version>
127127
<configuration>
128128
<tagNameFormat>@{project.version}</tagNameFormat>
129129
</configuration>
130130
</plugin>
131131
<plugin>
132132
<groupId>org.apache.maven.plugins</groupId>
133133
<artifactId>maven-gpg-plugin</artifactId>
134-
<version>1.6</version>
134+
<version>3.1.0</version>
135135
<executions>
136136
<execution>
137137
<id>sign-artifacts</id>
@@ -160,12 +160,6 @@
160160
</profiles>
161161

162162
<dependencies>
163-
<dependency>
164-
<groupId>log4j</groupId>
165-
<artifactId>log4j</artifactId>
166-
<version>1.2.17</version>
167-
<optional>true</optional>
168-
</dependency>
169163
<dependency>
170164
<groupId>com.lmax</groupId>
171165
<artifactId>disruptor</artifactId>
@@ -175,13 +169,13 @@
175169
<dependency>
176170
<groupId>org.apache.logging.log4j</groupId>
177171
<artifactId>log4j-api</artifactId>
178-
<version>${log4j.version}</version>
172+
<version>${log4j2.version}</version>
179173
<optional>true</optional>
180174
</dependency>
181175
<dependency>
182176
<groupId>org.apache.logging.log4j</groupId>
183177
<artifactId>log4j-core</artifactId>
184-
<version>${log4j.version}</version>
178+
<version>${log4j2.version}</version>
185179
<optional>true</optional>
186180
</dependency>
187181
<!-- Jackson 2 start -->
@@ -224,14 +218,14 @@
224218
</dependency>
225219
<!-- TEST -->
226220
<dependency>
227-
<groupId>junit</groupId>
228-
<artifactId>junit</artifactId>
221+
<groupId>org.junit.jupiter</groupId>
222+
<artifactId>junit-jupiter-engine</artifactId>
229223
<version>${junit.version}</version>
230224
<scope>test</scope>
231225
</dependency>
232226
<dependency>
233227
<groupId>org.mockito</groupId>
234-
<artifactId>mockito-all</artifactId>
228+
<artifactId>mockito-core</artifactId>
235229
<version>${mockito.version}</version>
236230
<scope>test</scope>
237231
</dependency>

src/main/java/com/rapid7/log4j/LogentriesAppender.java

Lines changed: 0 additions & 198 deletions
This file was deleted.

src/test/java/com/rapid7/jul/LogentriesHandlerTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33

44
import com.rapid7.util.SocketChannelReceiver;
5-
import org.junit.After;
6-
import org.junit.Test;
5+
import org.junit.jupiter.api.AfterEach;
6+
import org.junit.jupiter.api.Test;
77

88
import java.util.logging.LogManager;
99
import java.util.logging.Logger;
@@ -12,7 +12,7 @@
1212

1313
public class LogentriesHandlerTest {
1414

15-
@After
15+
@AfterEach
1616
public void cleanUpConfiguration() {
1717
LogManager.getLogManager().reset();
1818
}

0 commit comments

Comments
 (0)