-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Java 17 is not reflected as source/target of generated project #20752
Comments
I can't say I understand what this issue is about. Care to explain a little further please? |
tl;dr ... when generating project with Java 17 I would expect to have maven.compiler. source / target or just maven.compiler.release set to 17. The reproducer is probably too complicated to express just ^^^ :) |
Gotcha, thanks. cc @ia3andy |
I think it would be pretty easy to support:
Adding Good First Issue tag |
cc @ebullient (since you are refactoring some stuff around this) |
Docker templates need to be customizable too. |
Ah right! They are currently defined here (and used in the different docker templates): But I think we should have a |
Andy -- if you want to try this.. I'm actually not focused on any of the code this touches (mostly templates, I think?) |
hey guys if nobody take this issue, i would like. |
@netodevel go for it :) |
Hi Folks, i need a tip to update the dockers templates to java 17; @ia3andy, you gave the hint to transform but I didn't find it in the code where I register this template and pass values; The progress of this issue can be seen here: #20849 |
Fixed by #20849 |
Describe the bug
Java 17 is not reflected as source/target of generated project.
In dev mode one sees warning like this
2021-10-13 22:56:53,445 WARN [io.qua.dep.dev.JavaCompilationProvider] (vert.x-worker-thread-0) system modules path not set in conjunction with -source 11, line -1 in [unknown source]
Expected behavior
Project should use 17 as the value for maven.compiler. source / target / (release?).
Actual behavior
Generated pom.xml when using Java 17 looks like this:
How to Reproduce?
setJdk17
mvn io.quarkus.platform:quarkus-maven-plugin:2.4.0.CR1:create -DprojectGroupId=my-groupId -DprojectArtifactId=app-generated-skeleton -DprojectVersion=1.0.0-SNAPSHOT -DpackageName=org.my.group -DquarkusRegistryClient=false -DplatformArtifactId=quarkus-bom -DplatformVersion=2.4.0.CR1
mvn -f app-generated-skeleton quarkus:dev
sed -i "" "s/RESTEasy/RESTEasy v2/" app-generated-skeleton/src/main/java/org/my/group/GreetingResource.java
curl localhost:8080/hello
check the log, you will see "WARN [io.qua.dep.dev.JavaCompilationProvider] (vert.x-worker-thread-0) system modules path not set in conjunction with -source 11, line -1 in [unknown source]"
Output of
uname -a
orver
macOS BigSur
Output of
java -version
Java 17
GraalVM version (if different from Java)
No response
Quarkus version or git rev
2.4.0.CR1
Build tool (ie. output of
mvnw --version
orgradlew --version
)No response
Additional information
No response
The text was updated successfully, but these errors were encountered: