bibliothek icon indicating copy to clipboard operation
bibliothek copied to clipboard

[Idea/Add] get recommended Java Version from the api/v2

Open LuckCrafter opened this issue 3 years ago • 8 comments

I'll like to see a feature to get the recommended Java version for PaperMC (something like in the docs)

LuckCrafter avatar Nov 30 '21 23:11 LuckCrafter

recommended java version just seems completely irrelevant to the distribution system

electronicboy avatar Nov 30 '21 23:11 electronicboy

I agree with cat, but I also see the other side, the api is our main communication channel to hosts, such a feature could greatly reduce the work they have to do to deploy stuff. maybe we can add a tagging system so we can add metadata like this to version groups?

MiniDigger avatar Dec 01 '21 13:12 MiniDigger

My issue is, what constitutes as recommended? Tagging the build version is trivial, but, the notation of recommendations is somewhat iffy as we always just recommend the latest version that we know works for X a release, and am not sure that's something we should particularly be tryna maintain here

electronicboy avatar Dec 01 '21 13:12 electronicboy

we already maintain it on the docs, as OP said, so idk,. what do others think?

MiniDigger avatar Dec 01 '21 13:12 MiniDigger

Why not minimum java version instead of recommended?

Machine-Maker avatar Dec 01 '21 13:12 Machine-Maker

Minimum you can just get via the class file version, recommended (especially back on 1.16 and below, where recommended ≠ minimum) was harder and just involved hard coding a table. Also see https://github.com/PaperMC/Paper/issues/5630 for another possible approach/more rational.

e-im avatar Dec 01 '21 13:12 e-im

We maintain it on the docs in a place which isn't updating the metadata of several dozen builds at once? Unless you mean per release in which kills the granularity and creates some complexities when java issues are fixed or the max supported ver is bumped, etc I just feel that a recommended version is far too nuanced for something which others will push onto others less fortunate

electronicboy avatar Dec 01 '21 13:12 electronicboy

I would have defined it on the version group

MiniDigger avatar Dec 02 '21 10:12 MiniDigger