quarkusio / quarkus

Quarkus: Supersonic Subatomic Java.
https://quarkus.io
Apache License 2.0
13.84k stars 2.7k forks source link

Quarkus cli: `quarkus run` of picocli app with Gradle Kotlin DSL fails #38366

Open yostane opened 10 months ago

yostane commented 10 months ago

Describe the bug

I tried to run a quarkus cli app with argument: '-c -w --val 1' but it fails. The app was created with kotlin and Gradle Kotlin DSL. Even though the quarkusRun gradle tasks exists, I get this error with a quarkus run -Dquarkus.args='-c -w --val 1': [ERROR] Unable to build: Unknown action for GRADLE_KOTLIN_DSL

Expected behavior

Similar behavior as ./gradlew quarkusRun -Dquarkus.args='-c -w --val 1'

Actual behavior

[ERROR] Unable to build: Unknown action for GRADLE_KOTLIN_DSL

How to Reproduce?

-> Event though the quarkusRun gradle tasks exists, the above command fails with this error [ERROR] Unable to build: Unknown action for GRADLE_KOTLIN_DSL

Output of uname -a or ver

NA (I'm on windows)

Output of java -version

openjdk version "21.0.2" 2024-01-16 LTS

Quarkus version or git rev

3.6.7

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

Gradle 8.5

Additional information

No response

quarkus-bot[bot] commented 10 months ago

/cc @ebullient (cli,picocli), @geoand (kotlin), @glefloch, @maxandersen (cli), @quarkusio/devtools