@@ -82,12 +82,11 @@ under the License.
82
82
<maven .compiler.target>${java.version} </maven .compiler.target>
83
83
<hamcrest .version>1.3</hamcrest .version>
84
84
<slf4j .version>1.7.15</slf4j .version>
85
- <log4j .version>2.16.0 </log4j .version>
85
+ <log4j .version>2.17.1 </log4j .version>
86
86
<spotless .version>2.4.2</spotless .version>
87
87
<!-- Enforce single fork execution due to heavy mini cluster use in the tests -->
88
88
<flink .forkCount>1</flink .forkCount>
89
89
<flink .reuseForks>true</flink .reuseForks>
90
- <log4j .configuration>log4j2-test.properties</log4j .configuration>
91
90
<project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
92
91
</properties >
93
92
@@ -118,16 +117,47 @@ under the License.
118
117
<version >${flink.version} </version >
119
118
<scope >provided</scope >
120
119
</dependency >
120
+ <dependency >
121
+ <groupId >org.slf4j</groupId >
122
+ <artifactId >slf4j-api</artifactId >
123
+ <version >${slf4j.version} </version >
124
+ </dependency >
121
125
122
126
<!-- test dependencies -->
123
-
124
127
<dependency >
125
128
<groupId >org.hamcrest</groupId >
126
129
<artifactId >hamcrest-all</artifactId >
127
130
<version >${hamcrest.version} </version >
128
131
<type >jar</type >
129
132
<scope >test</scope >
130
133
</dependency >
134
+
135
+ <!-- tests will have log4j as the default logging framework available -->
136
+ <dependency >
137
+ <groupId >org.apache.logging.log4j</groupId >
138
+ <artifactId >log4j-slf4j-impl</artifactId >
139
+ <version >${log4j.version} </version >
140
+ <scope >test</scope >
141
+ </dependency >
142
+ <dependency >
143
+ <groupId >org.apache.logging.log4j</groupId >
144
+ <artifactId >log4j-api</artifactId >
145
+ <version >${log4j.version} </version >
146
+ <scope >test</scope >
147
+ </dependency >
148
+ <dependency >
149
+ <groupId >org.apache.logging.log4j</groupId >
150
+ <artifactId >log4j-core</artifactId >
151
+ <version >${log4j.version} </version >
152
+ <scope >test</scope >
153
+ </dependency >
154
+ <dependency >
155
+ <!-- API bridge between log4j 1 and 2 -->
156
+ <groupId >org.apache.logging.log4j</groupId >
157
+ <artifactId >log4j-1.2-api</artifactId >
158
+ <version >${log4j.version} </version >
159
+ <scope >test</scope >
160
+ </dependency >
131
161
</dependencies >
132
162
133
163
<build >
@@ -316,7 +346,6 @@ under the License.
316
346
<reuseForks >${flink.reuseForks} </reuseForks >
317
347
<systemPropertyVariables >
318
348
<forkNumber >0${surefire.forkNumber} </forkNumber >
319
- <log4j .configuration>${log4j.configuration} </log4j .configuration>
320
349
</systemPropertyVariables >
321
350
<!-- Prevent ORA-01882: timezone region not found errors due to the Oracle DB
322
351
does not understanding some time zone which used in Ubuntu OS -->
0 commit comments