Skip to content

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

@yostane

Description

@yostane

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?

  • Create a Quarkus CLI app (with Picocli) that uses Kotlin and Gradle with Kotlin DSL quarkus create cli --name="quarkus-cli-demo" --kotlin --gradle-kotlin-dsl --wrapper
  • Open the folder co code-with-quarkus
  • Run the app quarkus run -Dquarkus.args='-c -w --val 1'

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions