Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing SLF4J 2.0.0 issue for #11419 and #11400 #11433

Merged
merged 1 commit into from
Sep 21, 2022
Merged

Fixing SLF4J 2.0.0 issue for #11419 and #11400 #11433

merged 1 commit into from
Sep 21, 2022

Conversation

ndeverge
Copy link
Member

Pull Request Checklist

Helpful things

Fixes

Resolves #11419 and resolves #11400

Purpose

Upgrading SLF4J to v2.0.0 forces us to upgrade Logback too, as explained on the Logback documentation.
We can't upgrade Logback to 1.4.1 as it needs at least Java 11, and we must keep the Java 8 compatibility for now.

Also removing an exluded dependency for HikariCP as it depends also on SLF4J 2.0.0.

Has been tested on Java 8 and Java 11.

References

Should fix PR #11417

@mkurz
Copy link
Member

mkurz commented Sep 21, 2022

I am not entirely sure what's wrong here, however, just to make sure I just cleaned the GitHub actions cache and re-run the tests.

@ndeverge
Copy link
Member Author

@mkurz well, it did the job. Well done!

@mkurz
Copy link
Member

mkurz commented Sep 21, 2022

😉 I don't know the last days cleaning the cache resolved some problems... Anyway thanks!
BTW: I am dropping Java 8 finally, so we can finally upgrade all the dependencies that require Java 11+ (like logback 1.4): #11435

@@ -75,8 +76,7 @@ object Dependencies {
)

val jdbcDeps = Seq(
("com.zaxxer" % "HikariCP" % "4.0.3")
.exclude("org.slf4j", "slf4j-api"), // fetches slf4j 2.0.0-alpha1, but Play (still) uses 1.7, see https://github.com/brettwooldridge/HikariCP/pull/1669
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice you thought about that 😉

@mkurz mkurz merged commit c934f70 into playframework:main Sep 21, 2022
benwaffle pushed a commit to flowcommerce/lib-util that referenced this pull request Sep 22, 2022
While slf4j 2.x is backwards compatible, Play framework does not have a
release that supports slf4j 2.x yet. The [fix](playframework/playframework#11433)
has been merged, and should be out in Play 2.8.17.
benwaffle pushed a commit to flowcommerce/lib-util that referenced this pull request Sep 22, 2022
While slf4j 2.x is backwards compatible, Play framework does not have a
release that supports slf4j 2.x yet. The [fix](playframework/playframework#11433)
has been merged, and should be out in Play 2.8.17.
@ihostage ihostage added this to the 2.9.0 milestone Sep 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Upgrade slf4j to 2.0.0
3 participants