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
Upgrade to Kotlin 1.7 #26772
Upgrade to Kotlin 1.7 #26772
Conversation
Thanks for your pull request! The title of your pull request does not follow our editorial rules. Could you have a look?
|
@GavinRay97 cool, thanks - I've pinged the ones who are the experts for this matter. Can you please resolve the conflict? Thanks! |
c43dc32
to
5a30b1b
Compare
I force pushed a rebase to fix a conflict. |
@famod if people think there is value and we can get this in by tonight, I could be convinced to include it in 2.11. |
@@ -461,6 +463,32 @@ private static void initProjectModule(Project project, WorkspaceModule.Mutable m | |||
}); | |||
}); | |||
|
|||
project.getTasks().withType(KotlinJvmCompile.class, t -> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@glefloch could you have a look at this change?
Btw, this should fix #26290. Would be nice if anyone can confirm. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks pretty good to me and reflects what I'd been investigating as well. It should the CLI bug as well. That's the angle that I took when starting my own investigations.
The thread I was gonna pull on today was the possibility that the new compiler plugging uses a different source set and that's why they weren't showing up. Might save us the scanning time. |
This comment has been minimized.
This comment has been minimized.
Okay so the Gradle tests are failing because I forgot to add the Kotlin Gradle library to whichever Maven POM needs it:
That makes sense What's strange through is that |
|
LOL that'd make sense then I suppose 😂 Do you know which Maven POM I would need to add the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a bit more testing then
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this @GavinRay97. I think you can add kotlin-gradle-model
dependency to the gradle-model module.
I tried to get this working last night -- I added the
But I still get: Execution failed for task ':quarkusGenerateCode'.
> ClassNotFound: org/jetbrains/kotlin/gradle/tasks/KotlinJvmCompile My guess is maybe it's actually something with the Gradle dependencies and not Maven |
Who would be the right person to ask about this? I think the error is a red herring, if you apply the changes and create a new project, Quarkus works great. Maybe some kind of Gradle CLI invocation with a specific classpath and |
@ebullient @glefloch Apologies for the ping -- git blame shows you folks as primary contributors to:
Would either one of you be able to explain to me how the classpath + libraries are set for these tests? At this point, I started modifying even random project dependencies to try to get it to work: When the tests for So I'm really confused to what's happening here and running out of ideas =/ Thank you for your patience 🙏 |
one simple formatting fix and I think we're good to go @GavinRay97 |
568f639
to
dd1b396
Compare
Git reflog to the rescue! |
Okay, officially requesting review again, whenever someone has time The easiest way to tell whether this is working is probably to do something like this: @Path("/hello")
class GreetingResource {
@GET
@Produces(MediaType.TEXT_PLAIN)
fun hello() = "Hello from RESTEasy Reactive, running on Kotlin v${KotlinVersion.CURRENT}"
} |
a579dcf
to
c5d5eaf
Compare
c5d5eaf
to
931f7cc
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@GavinRay97 I squashed and force-pushed your changes in a single commit. Here is what I did:
git pull
to update my main branch with the latest changeshub pr checkout 26772
(Using the Hub CLI)git rebase -i HEAD~4
and marked the extra commits with anf
(fixup)git rebase main
to rebase with the latest main
Important: Make sure your pull.rebase
setting is true before doing that:
git config --global pull.rebase true
looks like heap issues on CI |
This comment has been minimized.
This comment has been minimized.
Failing Jobs - Building 931f7cc
Full information is available in the Build summary check run. Failures⚙️ Gradle Tests - JDK 11 #- Failing: integration-tests/gradle
📦 integration-tests/gradle✖
|
CI looks good. That test actually fails pretty often |
@evanchooly I think you were happy with the latest state? Can you approve the PR if it's fine for you? I'd really like to have for 2.12. |
Is everyone OK with that test failure? |
That is a flaky test AFAIK |
May the gods have mercy on us all. |
Seems to work, tested with a basic app from Quarkus codestarts using local
999-SNAPSHOT
with Kotlin 1.7.10Code_-_Insiders_WgelFAjM9L.mp4