Which version of the JDK are you all targeting? F...
# library-development
c
Which version of the JDK are you all targeting? For now, I was targeting 17, but I'm getting complaints that Android is stuck on 11? Is there a consensus in the community?
m
Jokes aside: • If it's a Gradle Plugin -> Java 11 • If it's a Spring thing -> Java 17 • Else -> Java8 Given that there is little to gain from targetting > 8 this gives the best compatibility
👍 1
c
8 ? Before Jigsaw, before
Path
, before Instant with nano-second precision? Nah, we had way too many problems migrating to 9, I'm not maintaining pre-9 libraries… 11 is on the table though
👍 2
a
I often try to target 8, but as soon as I run into an issue, I go to 11
1
p
One of our tools requires Java 9, so we are planning to bump our tooling to Java 11. 😉
a
I always target 21 since last year