Skip to content
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

Merged
merged 1 commit into from Aug 19, 2019
Merged

Scala language support #3399

merged 1 commit into from Aug 19, 2019

Conversation

miteshaghera
Copy link
Contributor

Initial support for Scala.

Fix for #1413

@gsmet
Copy link
Member

gsmet commented Aug 1, 2019

Hi @miteshaghera ,

Thanks for this. Looks like we have some test failures:

[INFO] Quarkus - Maven Plugin ............................. FAILURE [ 28.296 s]

@miteshaghera
Copy link
Contributor Author

miteshaghera commented Aug 5, 2019

Hi @miteshaghera ,

Thanks for this. Looks like we have some test failures:

[INFO] Quarkus - Maven Plugin ............................. FAILURE [ 28.296 s]

I fixed for Quarkus - Maven Plugin but now it's failing for Quarkus - Gradle Plugin. By looking into logs I found following exception:

Caused by: org.gradle.internal.resolve.ModuleVersionNotFoundException: Could not find io.quarkus:quarkus-bootstrap-parent:999-SNAPSHOT.
Searched in the following locations:
  - file:/D:/a/1/s/devtools/gradle/target/dependencies/io/quarkus/quarkus-bootstrap-parent/999-SNAPSHOT/maven-metadata.xml
  - file:/D:/a/1/s/devtools/gradle/target/dependencies/io/quarkus/quarkus-bootstrap-parent/999-SNAPSHOT/quarkus-bootstrap-parent-999-SNAPSHOT.pom
  - file:/D:/a/1/s/devtools/gradle/target/dependencies/io/quarkus/quarkus-bootstrap-parent/999-SNAPSHOT/quarkus-bootstrap-parent-999-SNAPSHOT.jar
  - https://repo.maven.apache.org/maven2/io/quarkus/quarkus-bootstrap-parent/999-SNAPSHOT/maven-metadata.xml
  - https://repo.maven.apache.org/maven2/io/quarkus/quarkus-bootstrap-parent/999-SNAPSHOT/quarkus-bootstrap-parent-999-SNAPSHOT.pom
  - https://repo.maven.apache.org/maven2/io/quarkus/quarkus-bootstrap-parent/999-SNAPSHOT/quarkus-bootstrap-parent-999-SNAPSHOT.jar

Do I need to change anything to support scala in gradle plugin?

Copy link
Member

@gsmet gsmet left a 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.

devtools/common/src/main/filtered/extensions.json Outdated Show resolved Hide resolved
Copy link
Member

@gsmet gsmet left a 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!

@gsmet gsmet removed this from the 0.21.0 milestone Aug 14, 2019
@miteshaghera
Copy link
Contributor Author

@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.

I have to add entry in extensions.json to make build successful for quarkus:create . However I omitted guide key as we don't have guide yet.

@gsmet gsmet added this to the 0.22.0 milestone Aug 15, 2019
Copy link
Member

@gsmet gsmet left a 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!

@miteshaghera
Copy link
Contributor Author

miteshaghera commented Aug 16, 2019

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!

I have added a project creation test inCreateProjectMojoIT for scala.

@@ -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 {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

By nature, these tests IT take some minutes to run, I wonder if this test should be a unit test using QuarkusDevModeTest since #3317 has already landed.

@gsmet WDYT?

Copy link
Contributor

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 :)

Copy link
Member

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?

Copy link
Contributor

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

@gsmet gsmet merged commit e51ecb9 into quarkusio:master Aug 19, 2019
@gsmet
Copy link
Member

gsmet commented Aug 19, 2019

Merged, thanks! Very nice addition.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants