Use java 21 toolchain on whole extractor and set java via release#1440
Conversation
Toolchain specifies which exact jdk version used for compiling gradle projects. Using several different toolchains in one repo without any reason is wastedul. Unifying used jdk will allow to store only one jdk on dev side. As a side effect unification should make problem encountered by some users on Matrix (it was tried to solve it in #12923)
|
Resources for reading: Big and a bit messy https://docs.gradle.org/current/userguide/toolchains.html |
|
Both extractor and newpipe probably should use the same toolchain version and just set different language versions..(?) |
|
Does android and its desugaring support Java 21? I am interested in this as well, but that's my main concern as to breakages over there. |
The PR is about just using jdk 21 everywhere but it doesn't mean you will be able to use 21 features. You will still use java 11 but just will need only one jdk installed not two for everything to work properly |
Toolchain specifies which exact jdk version used for compiling gradle projects. Using several different toolchains in one repo without any reason is wastedul. Unifying used jdk will allow to store only one jdk on dev side. As a side effect unification should make problem encountered by some users on Matrix (it was tried to solve it in #12923)