-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Can't compile with Scala 2.13 #10025
Comments
I tried to reproduce this issue following the steps you described but it works for me. Can you push a sample project in a Github repository? The only difference is that I am running Fedora 32 with openjdk 11 |
I managed to narrow it down, please change a line in |
@wiradikusuma can you build Quarkus master from #10053 and let me know if that works for you? It worked for me locally, but a second pair of eyes would help 😉 |
@gastaldi I can confirm that it works. |
Any news regarding Scala 2.13 support? |
@gastaldi Any news regarding Scala 2.13 support? |
@wiradikusuma I think Debezium needs to support Scala 2.13 before we migrate that. @gunnarmorling is that possible already? |
We (Camel Quarkus) would also prefer Scala 2.13 - because that's what we get from Camel. |
@ppalaga Debezium does not use Scala at all, it is just a question of which Kafka do we use as our dependency. I just check our |
Thanks for confirming, @jpechane. We are good to upgrade to scala 2.13. Then is there anybody who would like to prepare the PR? |
I have a branch somewhere but it would need a refresh. |
I created a draft PR here: #25106 . I had to rework everything as my branch was really too old and too many things had changed. |
Describe the bug
Quarkus doesn't work when Scala version is changed from 2.12 to 2.13.
Expected behavior
Successfully compiled.
To Reproduce
Steps to reproduce the behavior:
Open https://code.quarkus.io
Select Scala (I also selected Gradle, resteasy-jackson, jackson, jdbc-postgresql and mailer)
Download and extract the skeleton project
Update the Scala version in
build.gradle
to2.13.1
In
ExampleResource.scala
, replacedef hello() = "hello"
withdef hello() = List("hello").minOption.get
-- minOption is a new method in 2.13.In the project's working directory,
./gradlew quarkusDev
Notice the errors. You will get something like:
Environment (please complete the following information):
Output of
uname -a
orver
:Linux Ryzen5 4.4.0-18362-Microsoft Agroal extension url configurable independent of configuration subsystem #836-Microsoft Mon May 05 16:04:00 PST 2020 x86_64 x86_64 x86_64 GNU/Linux
Output of
java -version
:openjdk version "11.0.3" 2019-04-16
OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.3+7)
OpenJDK 64-Bit Server VM AdoptOpenJDK (build 11.0.3+7, mixed mode)
GraalVM version (if different from Java):
N/A
Quarkus version or git rev:
1.5.1.Final
Build tool (ie. output of
mvnw --version
orgradlew --version
):Gradle 6.3
Build time: 2020-03-24 19:52:07 UTC
Revision: bacd40b727b0130eeac8855ae3f9fd9a0b207c60
Kotlin: 1.3.70
Groovy: 2.5.10
Ant: Apache Ant(TM) version 1.10.7 compiled on September 1 2019
JVM: 11.0.3 (AdoptOpenJDK 11.0.3+7)
OS: Linux 4.4.0-18362-Microsoft amd64
The text was updated successfully, but these errors were encountered: