Skip to content

Commit 430fa6f

Browse files
committed
update to use newer dependncies and log4j2
1 parent 8d1388c commit 430fa6f

File tree

4 files changed

+36
-22
lines changed

4 files changed

+36
-22
lines changed

jnifmuapi/pom.xml

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@
1313
<artifactId>jnifmuapi</artifactId>
1414
<name>JNI interface for FMI</name>
1515

16+
<properties>
17+
<log4j2.version>2.24.3</log4j2.version>
18+
</properties>
19+
1620
<build>
1721
<plugins>
1822
<plugin>
@@ -96,27 +100,31 @@
96100
<dependency>
97101
<groupId>org.apache.commons</groupId>
98102
<artifactId>commons-compress</artifactId>
99-
<version>1.26.1</version>
103+
<version>1.27.1</version>
100104
</dependency>
101105

102106
<!-- https://mvnrepository.com/artifact/org.apache.commons/commons-lang3 -->
103107
<dependency>
104108
<groupId>org.apache.commons</groupId>
105109
<artifactId>commons-lang3</artifactId>
106-
<version>3.12.0</version>
110+
<version>3.17.0</version>
107111
</dependency>
108112

109113

114+
<dependency>
115+
<groupId>org.apache.logging.log4j</groupId>
116+
<artifactId>log4j-core</artifactId>
117+
<version>${log4j2.version}</version>
118+
</dependency>
110119
<dependency>
111-
<groupId>org.slf4j</groupId>
112-
<artifactId>slf4j-api</artifactId>
113-
<version>2.0.0-alpha7</version>
120+
<groupId>org.apache.logging.log4j</groupId>
121+
<artifactId>log4j-slf4j2-impl</artifactId>
122+
<version>${log4j2.version}</version>
114123
</dependency>
115-
116124
<dependency>
117125
<groupId>org.slf4j</groupId>
118-
<artifactId>slf4j-reload4j</artifactId>
119-
<version>2.0.0-alpha7</version>
126+
<artifactId>slf4j-api</artifactId>
127+
<version>2.0.16</version>
120128
</dependency>
121129

122130
<dependency>
@@ -129,7 +137,7 @@
129137
<dependency>
130138
<groupId>org.mockito</groupId>
131139
<artifactId>mockito-core</artifactId>
132-
<version>4.8.0</version>
140+
<version>5.16.0</version>
133141
<scope>test</scope>
134142
</dependency>
135143

jnifmuapi/src/test/resources/log4j.properties

Lines changed: 0 additions & 12 deletions
This file was deleted.
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Configuration status="WARN">
3+
<Appenders>
4+
<!-- Console appender for output to console -->
5+
<Console name="Console" target="SYSTEM_OUT">
6+
<!-- Layout pattern similar to the original one in Log4j 1.x -->
7+
<PatternLayout pattern="%5p [%t] (%F:%L) - %m%n"/>
8+
</Console>
9+
</Appenders>
10+
11+
<Loggers>
12+
<!-- Root logger definition -->
13+
<Root level="all">
14+
<!-- Attach the console appender to the root logger -->
15+
<AppenderRef ref="Console"/>
16+
</Root>
17+
</Loggers>
18+
</Configuration>

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
<dependency>
3030
<groupId>commons-io</groupId>
3131
<artifactId>commons-io</artifactId>
32-
<version>2.15.1</version>
32+
<version>2.18.0</version>
3333
</dependency>
3434
</dependencies>
3535
</dependencyManagement>

0 commit comments

Comments
 (0)