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

Register generated output dir for kotlin gradle plugin #13569

Merged
merged 1 commit into from
Dec 21, 2020

Conversation

glefloch
Copy link
Member

It looks like when no src/main/java is present, the kotlin task does not trigger the compileJava.

This register the build/classes/java/quarkus-generated-sources/grpc directory in the main sourceset (it does the same thing for tests).

The only thing that I don't like, is that I cannot load the provider name (e.g. grpc) dynamically has done in the extension.

Also, I re enabled the KotlinGRPCProjectBuildTest, it pass on my machine and on the Release build Test job on my fork.

close #12874

@ghost ghost added area/devtools Issues/PR related to maven, gradle, platform and cli tooling/plugins area/gradle Gradle labels Nov 30, 2020
Copy link
Member

@aloubyansky aloubyansky left a comment

Choose a reason for hiding this comment

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

Thanks @glefloch

@glefloch
Copy link
Member Author

glefloch commented Dec 3, 2020

@michalszynkiewicz do you think you could have a look ?

@@ -29,6 +29,7 @@

public static final String QUARKUS_GENERATED_SOURCES = "quarkus-generated-sources";
public static final String QUARKUS_TEST_GENERATED_SOURCES = "quarkus-test-generated-sources";
public static final String[] CODE_GENERATION_PROVIDER = new String[] { "grpc" };
Copy link
Member

Choose a reason for hiding this comment

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

could you add a TODO to get this list dynamically (if it's not easy enough to just do it ;) )?

@michalszynkiewicz
Copy link
Member

@glefloch I added one comment. It would be great if the list could be "not hardcoded".
I know the kogito team is looking into using the code generation mechanism. In their case it wouldn't even live in the quarkus-core repository to my knowledge

@michalszynkiewicz
Copy link
Member

But it could be done in a separate change.

@glefloch glefloch force-pushed the fix/12874 branch 2 times, most recently from 7800c2e to c0deb5f Compare December 7, 2020 13:29
@glefloch glefloch force-pushed the fix/12874 branch 2 times, most recently from 20174a2 to cd89070 Compare December 14, 2020 09:27
@gsmet gsmet merged commit eb9b83c into quarkusio:master Dec 21, 2020
@ghost ghost added this to the 1.11 - master milestone Dec 21, 2020
@glefloch glefloch deleted the fix/12874 branch December 21, 2020 12:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/devtools Issues/PR related to maven, gradle, platform and cli tooling/plugins area/gradle Gradle
Projects
None yet
Development

Successfully merging this pull request may close these issues.

A gradle project with kotlin and grpc fails compilation
4 participants