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

CLI "quarkus dev" command is not working with gradle kotlin #19049

Closed
ia3andy opened this issue Jul 28, 2021 · 4 comments · Fixed by #19053
Closed

CLI "quarkus dev" command is not working with gradle kotlin #19049

ia3andy opened this issue Jul 28, 2021 · 4 comments · Fixed by #19053
Assignees
Labels
area/cli Related to quarkus cli (not maven/gradle/etc.) area/gradle Gradle area/kotlin kind/bug Something isn't working
Milestone

Comments

@ia3andy
Copy link
Contributor

ia3andy commented Jul 28, 2021

Describe the bug

quarkus dev command is not working with gradle kotlin

Expected behavior

should work

Actual behavior

[ERROR] ❗  Unable to launch project in dev mode: Was not able to find a build file in: /Users/ia3andy/Downloads/code-with-quarkus

How to Reproduce?

  1. Generate some project with code.quarkus using Gradle Kotlin: https://stage.code.quarkus.io/?b=GRADLE_KOTLIN_DSL&e=resteasy&e=resteasy-jackson&e=hibernate-validator
  2. Copy quarkus dev command in the popup
  3. Unzip and cd
$ quarkus dev
[ERROR] ❗  Unable to launch project in dev mode: Was not able to find a build file in: /Users/ia3andy/Downloads/code-with-quarkus

Output of uname -a or ver

No response

Output of java -version

No response

GraalVM version (if different from Java)

No response

Quarkus version or git rev

No response

Build tool (ie. output of mvnw --version or gradlew --version)

No response

Additional information

No response

@ia3andy ia3andy added the kind/bug Something isn't working label Jul 28, 2021
@quarkus-bot
Copy link

quarkus-bot bot commented Jul 28, 2021

/cc @evanchooly, @glefloch, @quarkusio/devtools

@ia3andy ia3andy changed the title quarkus dev command is not working with gradle kotlin CLI "quarkus dev" command is not working with gradle kotlin Jul 28, 2021
@ia3andy ia3andy added the area/cli Related to quarkus cli (not maven/gradle/etc.) label Jul 28, 2021
@ia3andy
Copy link
Contributor Author

ia3andy commented Jul 28, 2021

/cc @ebullient

@glefloch
Copy link
Member

I can reproduce the issue. This comes from here:

File buildFile = projectRoot.resolve("build.gradle").toFile();

I have fixed it. I'm adding a test.

@glefloch glefloch self-assigned this Jul 28, 2021
@ia3andy
Copy link
Contributor Author

ia3andy commented Jul 28, 2021

Thanks @glefloch, we need to backport it to 2.0 and 2.1 if possible

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/cli Related to quarkus cli (not maven/gradle/etc.) area/gradle Gradle area/kotlin kind/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants