Quarkus: A generated Kotlin project with Gradle doesn't build

Created on 22 Dec 2019  Â·  13Comments  Â·  Source: quarkusio/quarkus

Describe the bug
When generating a project like so:

mvn io.quarkus:quarkus-maven-plugin:999-SNAPSHOT:create     -DprojectGroupId=org.acme     -DprojectArtifactId=gradle-kotlin-test     -DclassName="org.acme.GreetingResource"     -Dpath="/greeting"     -Dextensions="kotlin" -DplatformArtifactId=quarkus-bom -DbuildTool=gradle

and then trying to build it like so:

gradle build -x test

I get:

FAILURE: Build failed with an exception.

* Where:
Build file '/home/gandrian/Desktop/gradle-kotlin-test/build.gradle' line: 27

* What went wrong:
A problem occurred evaluating root project 'gradle-kotlin-test'.
> Could not find method setOutputDirectory() for arguments [/home/gandrian/Desktop/gradle-kotlin-test/build/classes/kotlin/main] on object of type io.quarkus.gradle.QuarkusPluginExtension.

Environment (please complete the following information):

  • Quarkus version or git rev: latest master
aregradle kinbug

Most helpful comment

All 13 comments

cc @gastaldi

Hm, weird, I don't think that part have changed. Not sure how it used to work in https://github.com/quarkusio/quarkus/commit/242d2f7cb55462d402c5c99fc3aca5283dc42dd3

I've lost track of the changes so I don't know either :P

Cool, thanks!

PR created in https://github.com/quarkusio/quarkus/pull/6312 (now with Functional tests for each source type). Sorry for the noise :)

Excellent, thanks for taking care of it so quickly!

How can we build until the release 1.2.0 will be published ? 😊

Downgrade to 1.0.0.Final until the next release comes up.

>

FWIW I’m thinking about releasing a 1.1.1 at the beginning of next year.

When I downgrade to 1.0.0.Final I have the same issue as this one #5781.

Caused by: java.lang.IllegalStateException: Unable to find quarkus-gradle-plugin dependency
        at io.quarkus.gradle.tasks.QuarkusDev.lambda$addGradlePluginDeps$2(QuarkusDev.java:403)
        at io.quarkus.gradle.tasks.QuarkusDev.addGradlePluginDeps(QuarkusDev.java:403)
        at io.quarkus.gradle.tasks.QuarkusDev.startDev(QuarkusDev.java:256)
        ... 95 more

That's because the Gradle config changed. Check the Migration guide for
more details

Em Seg, 30 de dez de 2019 03:20, JBertaux notifications@github.com
escreveu:

When I downgrade to 1.0.0.Final I have the same issue as this one #5781
https://github.com/quarkusio/quarkus/issues/5781.

Caused by: java.lang.IllegalStateException: Unable to find quarkus-gradle-plugin dependency
at io.quarkus.gradle.tasks.QuarkusDev.lambda$addGradlePluginDeps$2(QuarkusDev.java:403)
at io.quarkus.gradle.tasks.QuarkusDev.addGradlePluginDeps(QuarkusDev.java:403)
at io.quarkus.gradle.tasks.QuarkusDev.startDev(QuarkusDev.java:256)
... 95 more

—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/quarkusio/quarkus/issues/6311?email_source=notifications&email_token=AAANG5PETEFGUFIQ3POF7PDQ3GHKLA5CNFSM4J6LMI62YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEHZVCMI#issuecomment-569594161,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAANG5IJTYKSXIYGPPSGAV3Q3GHKLANCNFSM4J6LMI6Q
.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

gastaldi picture gastaldi  Â·  3Comments

pipinet picture pipinet  Â·  3Comments

MossabTN picture MossabTN  Â·  3Comments

nderwin picture nderwin  Â·  3Comments

halhelal picture halhelal  Â·  3Comments