Skip to content

Commit e0cfe82

Browse files
authored
Merge pull request #1321 from kdoomsday/patch-1
Update to latest recommended log4j version
2 parents 075fbec + 5ab47c5 commit e0cfe82

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

_posts/2021-12-16-state-of-log4j-in-scala-ecosystem.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,9 @@ In the above project, we add the following sbt setting in the appropriate `.sett
105105

106106
```scala
107107
libraryDependencies ++= Seq(
108-
"org.apache.logging.log4j" % "log4j-api" % "2.16.0",
109-
"org.apache.logging.log4j" % "log4j-core" % "2.16.0",
110-
"org.apache.logging.log4j" % "log4j-slf4j-impl" % "2.16.0",
108+
"org.apache.logging.log4j" % "log4j-api" % "2.17.0",
109+
"org.apache.logging.log4j" % "log4j-core" % "2.17.0",
110+
"org.apache.logging.log4j" % "log4j-slf4j-impl" % "2.17.0",
111111
),
112112
```
113113

@@ -117,9 +117,9 @@ Reloading the build and displaying the `fullClasspath`, we can confirm that the
117117
$ sbt
118118
> show myProject/Compile/fullClasspath
119119
...
120-
[info] * Attributed(.../.cache/coursier/v1/https/repo1.maven.org/maven2/org/apache/logging/log4j/log4j-api/2.16.0/log4j-api-2.16.0.jar)
121-
[info] * Attributed(.../.cache/coursier/v1/https/repo1.maven.org/maven2/org/apache/logging/log4j/log4j-core/2.16.0/log4j-core-2.16.0.jar)
122-
[info] * Attributed(.../.cache/coursier/v1/https/repo1.maven.org/maven2/org/apache/logging/log4j/log4j-slf4j-impl/2.16.0/log4j-slf4j-impl-2.16.0.jar)
120+
[info] * Attributed(.../.cache/coursier/v1/https/repo1.maven.org/maven2/org/apache/logging/log4j/log4j-api/2.17.0/log4j-api-2.17.0.jar)
121+
[info] * Attributed(.../.cache/coursier/v1/https/repo1.maven.org/maven2/org/apache/logging/log4j/log4j-core/2.17.0/log4j-core-2.17.0.jar)
122+
[info] * Attributed(.../.cache/coursier/v1/https/repo1.maven.org/maven2/org/apache/logging/log4j/log4j-slf4j-impl/2.17.0/log4j-slf4j-impl-2.17.0.jar)
123123
...
124124
[success] Total time: 0 s, completed Dec 16, 2021 11:20:44 AM
125125
```
@@ -136,9 +136,9 @@ You can also force an upgrade of transitive dependencies with additional entries
136136

137137
```scala
138138
def ivyDeps = Agg(
139-
ivy"org.apache.logging.log4j:log4j-api:2.16.0",
140-
ivy"org.apache.logging.log4j:log4j-core:2.16.0",
141-
ivy"org.apache.logging.log4j:log4j-slf4j-impl:2.16.0",
139+
ivy"org.apache.logging.log4j:log4j-api:2.17.0",
140+
ivy"org.apache.logging.log4j:log4j-core:2.17.0",
141+
ivy"org.apache.logging.log4j:log4j-slf4j-impl:2.17.0",
142142
)
143143
```
144144

@@ -158,17 +158,17 @@ Like in sbt, you can force an upgrade of transitive dependencies of log4j using
158158
<dependency>
159159
<groupId>org.apache.logging.log4j</groupId>
160160
<artifactId>log4j-api</artifactId>
161-
<version>2.16.0</version>
161+
<version>2.17.0</version>
162162
</dependency>
163163
<dependency>
164164
<groupId>org.apache.logging.log4j</groupId>
165165
<artifactId>log4j-core</artifactId>
166-
<version>2.16.0</version>
166+
<version>2.17.0</version>
167167
</dependency>
168168
<dependency>
169169
<groupId>org.apache.logging.log4j</groupId>
170170
<artifactId>log4j-slf4j-impl</artifactId>
171-
<version>2.16.0</version>
171+
<version>2.17.0</version>
172172
</dependency>
173173
```
174174

0 commit comments

Comments
 (0)