New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Regression: Quarkus-cli create app doesn't auto-detect Host java version #24613
Comments
/cc @ebullient, @maxandersen, @quarkusio/devtools |
okey thats weird but I can confirm it does not seem to work :/ @ebullient @ia3andy any ideas ? |
I think it is the match for the java version property... |
Given we are targeting Java 11+ now, can't we use |
Another possibility would be to use |
perhaps? yes. This is what needs to be revised: Line 79 in 1c9dbbd
I won't be able to get there today. |
I will have a look. I need simple stuff today. |
"java.version" is 17 on my local version so not sure why that code would fail to detect 17... |
As I said, I looked into and already have a patch ready. I’m running the Maven tests locally and will create a PR later today. |
And yes the main problem is not the detection but the CLI itself. Anyway I’m out for a while, will open the PR when I’m back. |
Also, make sure project created with Java 18 will use Java 17 and not Java 11. Finally, use autodetection for QuarkusJBangCodestartProjectInputBuilder too. Fixes quarkusio#24613
Also, make sure project created with Java 18 will use Java 17 and not Java 11. Finally, use autodetection for QuarkusJBangCodestartProjectInputBuilder too. Fixes quarkusio#24613 (cherry picked from commit be33427)
Also, make sure project created with Java 18 will use Java 17 and not Java 11. Finally, use autodetection for QuarkusJBangCodestartProjectInputBuilder too. Fixes quarkusio#24613 (cherry picked from commit be33427)
Describe the bug
When you create an app with
Quarkus-cli 2.6.3
the tool detects the java version that is running in the developer environment and the resulted app has the same java version as the host.This feature is broken in
Quarkus 2.7.5.Final
Reproducer:
Quarkus 2.6.3
Install quarkus-cli 2.6.3:
jbang app install --name qs2.6.3 io.quarkus:quarkus-cli:2.6.3.Final:runner
Create app:
qs2.6.3 create app app
The pom has the same Java version as the host machine.
Quarkus 2.7.5
Install quarkus-cli 2.6.3:
jbang app install --name qs2.7.5 io.quarkus:quarkus-cli:2.7.5.Final:runner
Create app:
qs2.7.5 create app app
Pom Java version:
<maven.compiler.release>11</maven.compiler.release>
Expected version:
17
Output of
java -version
openjdk 17.0.1 2021-10-19 OpenJDK Runtime Environment Temurin-17.0.1+12 (build 17.0.1+12) OpenJDK 64-Bit Server VM Temurin-17.0.1+12 (build 17.0.1+12, mixed mode, sharing)
The text was updated successfully, but these errors were encountered: