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
Scala language support #3399
Scala language support #3399
Conversation
Hi @miteshaghera , Thanks for this. Looks like we have some test failures:
|
I fixed for
Do I need to change anything to support scala in gradle plugin? |
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.
@miteshaghera looks good to me except for a small comment.
Could you fix it? If you can squash everything into one commit, that would be appreciated too.
In the meantime, I'll try to create a Scala project and see how it goes.
core/deployment/src/main/java/io/quarkus/deployment/builditem/FeatureBuildItem.java
Outdated
Show resolved
Hide resolved
0a82e2d
to
9bb6f26
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.
OK I tried to create a project and found a couple more issues.
Could you check what's going on?
Thanks!
devtools/common/src/main/java/io/quarkus/generators/SourceType.java
Outdated
Show resolved
Hide resolved
devtools/common/src/main/resources/templates/basic-rest/scala/pom-template.ftl
Outdated
Show resolved
Hide resolved
9bb6f26
to
35758a5
Compare
I have to add entry in |
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.
I added a couple more comments.
Could you also add a test of project creation? Considering it was broken, we really need one. See my comment here: #3542 (comment) .
Thanks!
devtools/common/src/main/java/io/quarkus/generators/SourceType.java
Outdated
Show resolved
Hide resolved
35758a5
to
5c32c24
Compare
I have added a project creation test in |
@@ -189,6 +189,34 @@ public void testThatTheApplicationIsReloadedOnKotlinChange() throws MavenInvocat | |||
.atMost(1, TimeUnit.MINUTES).until(() -> getHttpResponse("/app/hello").contains("carambar")); | |||
} | |||
|
|||
@Test | |||
public void testThatTheApplicationIsReloadedOnScalaChange() throws MavenInvocationException, IOException { |
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.
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.
If QuarkusDevModeTest
can cover this case, it would be ideal to use it.
And if it does, then replacing the existing tests with something that uses QuarkusDevModeTest
would be even better :)
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.
Sure, I think tests that check if files have been correctly modified, deleted etc can leverage QuarkusDevModeTest
. We have an issue for that?
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.
Not that I know of, but I haven't really checked
5c32c24
to
dfdb3db
Compare
Merged, thanks! Very nice addition. |
Initial support for Scala.
Fix for #1413