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

Generate Code fails if project dependencies do not include a main SourceSet #27950

Closed
AdlerFleurant opened this issue Sep 14, 2022 · 1 comment · Fixed by #27952 or #28685
Closed

Generate Code fails if project dependencies do not include a main SourceSet #27950

AdlerFleurant opened this issue Sep 14, 2022 · 1 comment · Fixed by #27952 or #28685
Labels
area/gradle Gradle kind/bug Something isn't working
Milestone

Comments

@AdlerFleurant
Copy link
Contributor

Describe the bug

For Gradle, the task quarkusGenerateCode fails if a project dependency does not have a sourceSet called exactly main.

Expected behavior

Building a project should work even if a project dependency does not have a sourceSet called main.

Actual behavior

Gradle fails with the following error:

Execution failed for task ':quarkus:quarkusGenerateCode'.
> Could not resolve all dependencies for configuration ':quarkus:quarkusProdRuntimeClasspathConfigurationDeployment'.
   > SourceSet with name 'main' not found

How to Reproduce?

Reproducer: https://github.com/AdlerFleurant/quarkus-mpp-sample

Steps to reproduce the behavior:

  1. Run ./gradlew quarkusGenerateCode on the reproducer project.

Output of uname -a or ver

Darwin xxxxxxxxxxxxx 21.6.0 Darwin Kernel Version 21.6.0: Wed Aug 10 14:28:23 PDT 2022; root:xnu-8020.141.5~2/RELEASE_ARM64_T6000 arm64

Output of java -version

openjdk version "17.0.2" 2022-01-18

GraalVM version (if different from Java)

No response

Quarkus version or git rev

2.12.2.Final

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

7.5.1

Additional information

No response

@AdlerFleurant AdlerFleurant added the kind/bug Something isn't working label Sep 14, 2022
AdlerFleurant added a commit to AdlerFleurant/quarkus that referenced this issue Sep 14, 2022
Treating Extension Dependencies as optional

Fixes quarkusio#27950
AdlerFleurant added a commit to AdlerFleurant/quarkus that referenced this issue Sep 14, 2022
Treating Extension Dependencies as optional

Fixes quarkusio#27950
AdlerFleurant added a commit to AdlerFleurant/quarkus that referenced this issue Sep 14, 2022
Treating Extension Dependencies as optional

Fixes quarkusio#27950

Signed-off-by: Adler Fleurant <[email protected]>
AdlerFleurant added a commit to AdlerFleurant/quarkus that referenced this issue Sep 15, 2022
Treating Extension Dependencies as optional

Fixes quarkusio#27950

Signed-off-by: Adler Fleurant <[email protected]>
AdlerFleurant added a commit to AdlerFleurant/quarkus that referenced this issue Sep 15, 2022
Treating Extension Dependencies as optional

Fixes quarkusio#27950

Signed-off-by: Adler Fleurant <[email protected]>
@quarkus-bot
Copy link

quarkus-bot bot commented Sep 15, 2022

/cc @glefloch, @quarkusio/devtools

AdlerFleurant added a commit to AdlerFleurant/quarkus that referenced this issue Sep 15, 2022
Treating Extension Dependencies as optional

Fixes quarkusio#27950

Signed-off-by: Adler Fleurant <[email protected]>
AdlerFleurant added a commit to AdlerFleurant/quarkus that referenced this issue Sep 15, 2022
Treating Extension Dependencies as optional

Fixes quarkusio#27950

Signed-off-by: Adler Fleurant <[email protected]>
AdlerFleurant added a commit to AdlerFleurant/quarkus that referenced this issue Sep 16, 2022
Treating Extension Dependencies as optional

Fixes quarkusio#27950

Signed-off-by: Adler Fleurant <[email protected]>
AdlerFleurant added a commit to AdlerFleurant/quarkus that referenced this issue Sep 16, 2022
Treating Extension Dependencies as optional

Fixes quarkusio#27950

Signed-off-by: Adler Fleurant <[email protected]>
AdlerFleurant added a commit to AdlerFleurant/quarkus that referenced this issue Sep 16, 2022
Treating Extension Dependencies as optional

Fixes quarkusio#27950

Signed-off-by: Adler Fleurant <[email protected]>
AdlerFleurant added a commit to AdlerFleurant/quarkus that referenced this issue Sep 16, 2022
Treating Extension Dependencies as optional

Fixes quarkusio#27950

Signed-off-by: Adler Fleurant <[email protected]>
AdlerFleurant added a commit to AdlerFleurant/quarkus that referenced this issue Sep 16, 2022
Treating Extension Dependencies as optional

Fixes quarkusio#27950

Signed-off-by: Adler Fleurant <[email protected]>
AdlerFleurant added a commit to AdlerFleurant/quarkus that referenced this issue Sep 16, 2022
Treating Extension Dependencies as optional

Fixes quarkusio#27950

Signed-off-by: Adler Fleurant <[email protected]>
AdlerFleurant added a commit to AdlerFleurant/quarkus that referenced this issue Sep 19, 2022
Treating Extension Dependencies as optional

Fixes quarkusio#27950

Signed-off-by: Adler Fleurant <[email protected]>
AdlerFleurant added a commit to AdlerFleurant/quarkus that referenced this issue Sep 19, 2022
Treating Extension Dependencies as optional

Fixes quarkusio#27950

Signed-off-by: Adler Fleurant <[email protected]>
AdlerFleurant added a commit to AdlerFleurant/quarkus that referenced this issue Sep 19, 2022
Treating Extension Dependencies as optional

Fixes quarkusio#27950

Signed-off-by: Adler Fleurant <[email protected]>
AdlerFleurant added a commit to AdlerFleurant/quarkus that referenced this issue Sep 19, 2022
Treating Extension Dependencies as optional

Fixes quarkusio#27950

Signed-off-by: Adler Fleurant <[email protected]>
AdlerFleurant added a commit to AdlerFleurant/quarkus that referenced this issue Sep 19, 2022
Treating Extension Dependencies as optional

Fixes quarkusio#27950

Signed-off-by: Adler Fleurant <[email protected]>
AdlerFleurant added a commit to AdlerFleurant/quarkus that referenced this issue Sep 20, 2022
Treating Extension Dependencies as optional

Fixes quarkusio#27950

Signed-off-by: Adler Fleurant <[email protected]>
AdlerFleurant added a commit to AdlerFleurant/quarkus that referenced this issue Sep 20, 2022
Treating Extension Dependencies as optional

Fixes quarkusio#27950

Signed-off-by: Adler Fleurant <[email protected]>
AdlerFleurant added a commit to AdlerFleurant/quarkus that referenced this issue Sep 20, 2022
Treating Extension Dependencies as optional

Fixes quarkusio#27950

Signed-off-by: Adler Fleurant <[email protected]>
@quarkus-bot quarkus-bot bot added this to the 2.14 - main milestone Sep 21, 2022
@gsmet gsmet removed this from the 2.14 - main milestone Sep 30, 2022
@gsmet gsmet added this to the 2.13.1.Final milestone Sep 30, 2022
gsmet pushed a commit to gsmet/quarkus that referenced this issue Oct 3, 2022
Treating Extension Dependencies as optional

Fixes quarkusio#27950

Signed-off-by: Adler Fleurant <[email protected]>
(cherry picked from commit 827f778)
igorregis pushed a commit to igorregis/quarkus that referenced this issue Oct 16, 2022
Treating Extension Dependencies as optional

Fixes quarkusio#27950

Signed-off-by: Adler Fleurant <[email protected]>
igorregis pushed a commit to igorregis/quarkus that referenced this issue Oct 16, 2022
Treating Extension Dependencies as optional

Fixes quarkusio#27950

Signed-off-by: Adler Fleurant <[email protected]>
igorregis pushed a commit to igorregis/quarkus that referenced this issue Oct 16, 2022
Treating Extension Dependencies as optional

Fixes quarkusio#27950

Signed-off-by: Adler Fleurant <[email protected]>
igorregis pushed a commit to igorregis/quarkus that referenced this issue Oct 17, 2022
Treating Extension Dependencies as optional

Fixes quarkusio#27950

Signed-off-by: Adler Fleurant <[email protected]>
gsmet added a commit to gsmet/quarkus that referenced this issue Oct 19, 2022
Eng-Fouad pushed a commit to Eng-Fouad/quarkus that referenced this issue Oct 21, 2022
tmihalac pushed a commit to tmihalac/quarkus that referenced this issue Oct 27, 2022
@gsmet gsmet modified the milestones: 2.13.1.Final, 2.13.4.Final Oct 31, 2022
gsmet added a commit to gsmet/quarkus that referenced this issue Oct 31, 2022
Test courtesy of Adler Fleurant.

Fixes quarkusio#27950

(cherry picked from commit ec2fdbc)
zakkak pushed a commit to zakkak/quarkus that referenced this issue Nov 15, 2022
Test courtesy of Adler Fleurant.

Fixes quarkusio#27950

(cherry picked from commit ec2fdbc)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/gradle Gradle kind/bug Something isn't working
Projects
None yet
3 participants