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

Load main sourceSet only if present for project dependencies #27952

Conversation

AdlerFleurant
Copy link
Contributor

Treating Extension Dependencies as optional

Fixes #27950

@quarkus-bot quarkus-bot bot added area/devtools Issues/PR related to maven, gradle, platform and cli tooling/plugins area/gradle Gradle labels Sep 14, 2022
@AdlerFleurant AdlerFleurant force-pushed the no-fail-on-no-main-project-dependency branch 3 times, most recently from 86c768e to 3de9cd2 Compare September 15, 2022 01:34
@AdlerFleurant AdlerFleurant changed the title Ignore project dependencies without main sourceSet Load main sourceSet only if present for project dependencies Sep 15, 2022
@quarkus-bot

This comment has been minimized.

@aloubyansky
Copy link
Member

@AdlerFleurant could you please run mvn -Dquickly on your repo and include the changes into your commit? Thanks.

@AdlerFleurant AdlerFleurant force-pushed the no-fail-on-no-main-project-dependency branch 2 times, most recently from 87c4f8c to f3a3a8c Compare September 15, 2022 19:18
@AdlerFleurant
Copy link
Contributor Author

@aloubyansky star static imports seems to be ignored so I have changed it manually.

@quarkus-bot

This comment has been minimized.

@AdlerFleurant AdlerFleurant force-pushed the no-fail-on-no-main-project-dependency branch from f3a3a8c to 6d8314a Compare September 16, 2022 02:56
@quarkus-bot

This comment has been minimized.

@AdlerFleurant AdlerFleurant force-pushed the no-fail-on-no-main-project-dependency branch 2 times, most recently from 5cb8ff3 to e8e28cf Compare September 16, 2022 15:19
@quarkus-bot

This comment has been minimized.

@aloubyansky
Copy link
Member

@AdlerFleurant looks like the tests are failing in the CI. Could you please make sure they pass for you locally before push a new commit? Running tests paragraph may help locating the relevant tests to run. Thanks!

@AdlerFleurant AdlerFleurant force-pushed the no-fail-on-no-main-project-dependency branch from e8e28cf to 0cc0f25 Compare September 16, 2022 16:13
@quarkus-bot

This comment has been minimized.

@AdlerFleurant AdlerFleurant force-pushed the no-fail-on-no-main-project-dependency branch 2 times, most recently from 8993956 to 0883509 Compare September 16, 2022 19:33
@AdlerFleurant AdlerFleurant changed the title Load main sourceSet only if present for project dependencies Draft: Load main sourceSet only if present for project dependencies Sep 16, 2022
@AdlerFleurant AdlerFleurant changed the title Draft: Load main sourceSet only if present for project dependencies Load main sourceSet only if present for project dependencies Sep 16, 2022
@AdlerFleurant
Copy link
Contributor Author

AdlerFleurant commented Sep 16, 2022

@AdlerFleurant looks like the tests are failing in the CI. Could you please make sure they pass for you locally before push a new commit? Running tests paragraph may help locating the relevant tests to run. Thanks!

Missed this. I will make sure to run the test successfully before my next push. However, part of this seems to be from the CI. As it is trying to load some artifacts from the temporary test folder.

@quarkus-bot

This comment has been minimized.

@AdlerFleurant AdlerFleurant force-pushed the no-fail-on-no-main-project-dependency branch from 0883509 to 9d67379 Compare September 19, 2022 03:21
@AdlerFleurant
Copy link
Contributor Author

Do I need to rebase the branch before the merge?

@AdlerFleurant AdlerFleurant force-pushed the no-fail-on-no-main-project-dependency branch from 9d67379 to 596b21d Compare September 19, 2022 12:51
@AdlerFleurant
Copy link
Contributor Author

@Ladicek , @aloubyansky , the branch is rebased and the pull request that fixes optaplanner-quickstart was merged. This should run smoothly now.

@AdlerFleurant AdlerFleurant force-pushed the no-fail-on-no-main-project-dependency branch 2 times, most recently from 2d0144a to a603f26 Compare September 19, 2022 18:16
@quarkus-bot

This comment has been minimized.

@AdlerFleurant AdlerFleurant force-pushed the no-fail-on-no-main-project-dependency branch from a603f26 to 7d94978 Compare September 19, 2022 22:07
@AdlerFleurant
Copy link
Contributor Author

Not sure why this build failed on Windows. It seemed to be just a jitter.

@AdlerFleurant
Copy link
Contributor Author

@gsmet @aloubyansky @glefloch, this is ready for review.

@AdlerFleurant AdlerFleurant force-pushed the no-fail-on-no-main-project-dependency branch from 7d94978 to 09a0297 Compare September 20, 2022 14:55
@aloubyansky
Copy link
Member

@glefloch could you please review this one? Thanks!

@gsmet
Copy link
Member

gsmet commented Sep 20, 2022

@AdlerFleurant could you rebase and force push? We don't want merge commits in PRs.

Copy link
Member

@glefloch glefloch left a comment

Choose a reason for hiding this comment

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

This looks good to me, thanks @AdlerFleurant

@AdlerFleurant AdlerFleurant force-pushed the no-fail-on-no-main-project-dependency branch from db896d1 to 7973af2 Compare September 20, 2022 15:49
Treating Extension Dependencies as optional

Fixes quarkusio#27950

Signed-off-by: Adler Fleurant <[email protected]>
@AdlerFleurant AdlerFleurant force-pushed the no-fail-on-no-main-project-dependency branch from 7973af2 to 827f778 Compare September 20, 2022 16:01
@AdlerFleurant
Copy link
Contributor Author

@gsmet I have updated into a single commit.

@AdlerFleurant
Copy link
Contributor Author

Is there another action needed on my side to get this merged in @gsmet

@aloubyansky aloubyansky merged commit 9db376c into quarkusio:main Sep 21, 2022
@quarkus-bot quarkus-bot bot added this to the 2.14 - main milestone Sep 21, 2022
@aloubyansky
Copy link
Member

No, all good, thanks a lot @AdlerFleurant!

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 kind/bugfix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Generate Code fails if project dependencies do not include a main SourceSet
5 participants