Generator-jhipster: generator - selection of java version (supported versions)

Created on 23 Sep 2019  路  6Comments  路  Source: jhipster/generator-jhipster

Overview of the feature request

When I generate a project I would like to select the java version from a list of supported ones.

area wont-fix

Most helpful comment

We support Java8 and 11. So it should work for both.
I don't see any value of adding a new question because it will imply to:

  • add new question
  • store a new option in config
  • add support in jdl-core
  • add full daily builds to test more configs
  • add support in all our cloud template
  • update start.jhipster.tech
  • etc

Too much work for no real value.
Anyway, we'll drop java8 soon

All 6 comments

We support Java8 and 11. So it should work for both.
I don't see any value of adding a new question because it will imply to:

  • add new question
  • store a new option in config
  • add support in jdl-core
  • add full daily builds to test more configs
  • add support in all our cloud template
  • update start.jhipster.tech
  • etc

Too much work for no real value.
Anyway, we'll drop java8 soon

@maku : This has been subjected to debate particularly on the following thread; https://github.com/jhipster/generator-jhipster/issues/9934

I've added support for this initially but later (see the following comment by @PierreBesson and the following comment by @pascalgrimaud ) we've decided not to do this. I do see the problems that might arise due to this kind of choice; and do agree with their decision.

Having said that; the changing of java version manually is not difficult; and as Pascal pointed out, it should work for both. 馃槃

@SudharakaP Thanks for answering: https://github.com/jhipster/generator-jhipster/issues/9934 is exactly the kind of problems when "manually" changing the java version... So the first question I asked myself was what I did wrong. And honestly I found not a good answer in documentation etc. (and also in the issues). Maybe it would be a good idea to mention the steps to change the java version in the docu (and potential pitfalls)

@maku : The afterburner warning is harmless; you can just ignore it for now. When that PR is merged and when you change the java version you won't see that reflection warning anymore. 馃槃

@pascalgrimaud : Given that we are dropping java 8 soon; I don't see much value adding this to the documentation, also given that there's only warnings which are harmless; let me know if you think otherwise, I can add a small blob if that's the case. 馃槃

@maku : Just for added information, you might also see the following warnings; https://github.com/jhipster/generator-jhipster/issues/10271.

As explained, we won't add this additional question, that's why I'm closing this ticket.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

marcelinobadin picture marcelinobadin  路  3Comments

tomj0101 picture tomj0101  路  3Comments

pascalgrimaud picture pascalgrimaud  路  4Comments

trajakovic picture trajakovic  路  4Comments

pascalgrimaud picture pascalgrimaud  路  3Comments