This message was deleted.
# community-news
s
This message was deleted.
🎉 1
👀 2
💯 3
d
Have you seen Toolchains for JVM projects? It's pretty useful when you want to be certain of what CI is building matches what you expect
b
Oh that’s interesting. I haven’t been aware of those. I’ll certainly use them in future projects! Gotta try out if that works in IntelliJ as well…
t
Fwiw, because not all plugins support toolchains (e.g. Spotless), and thus require a minimum Java version for running the build, I simply put that line in my build scripts:
Copy code
check(JavaVersion.current().isJava11Compatible) { "The project requires JDK 11 at a minimum" }
(or using a comparison with a constant when
isJavaXXCompatible
is not available)
b
To be honest, the plugin is just a glorified version of that. I used to have a similar check in most of my projects, but funny enough only when I added the banner with the coffee cup people immediately noticed what was wrong. So I thought I’d bake it into a small plugin. :)
m
Good Job @Bruno Essmann