-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Externalize Gradle model builder in a module #20709
Conversation
<dependency> | ||
<groupId>io.quarkus</groupId> | ||
<artifactId>quarkus-gradle-tooling</artifactId> | ||
<version>999-SNAPSHOT</version> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know why, and I don't like it, but without the version here, it does not compile..
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because it's not in the dependencyManagement of the parent?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a sibling project, they both have the same parent, should I add a dependencyManagement block ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, of course, if you don't want to specify the version here.
You mean it would be used in the extension plugin as well? Could you describe for what? |
This workflow status is outdated as a new workflow run has been triggered. Failing Jobs - Building ef968c1
Failures⚙️ Initial JDK 11 Build #- Failing: devtools/gradle/gradle-tooling
! Skipped: devtools/gradle/gradle-application-plugin integration-tests/gradle 📦 devtools/gradle/gradle-tooling✖ |
yes, this will be needed in order to run quarkus unit test. This is related to #19504, the |
<groupId>io.quarkus</groupId> | ||
<artifactId>quarkus-gradle-tooling</artifactId> | ||
<version>999-SNAPSHOT</version> | ||
<type>pom</type> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the purpose of this dependency on the pom?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the build is handled by gradle using the execute-plugin
however the pom is published by maven. without it, when using the plugin, this dependency is not transitively downloaded.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't see a dependency on the JAR. Although it should be on the classpath, right?
<modelVersion>4.0.0</modelVersion> | ||
|
||
<groupId>io.quarkus</groupId> | ||
<artifactId>quarkus-gradle-tooling</artifactId> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we call it quarkus-gradle-model
, since it looks like it includes the app model-related API? Or are there other reasons to call it tooling
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, I'm updating the module name
ef968c1
to
0cf44c0
Compare
This workflow status is outdated as a new workflow run has been triggered. Failing Jobs - Building 0cf44c0
Failures⚙️ Initial JDK 11 Build #- Failing: devtools/gradle/gradle-model
! Skipped: devtools/gradle/gradle-application-plugin integration-tests/gradle 📦 devtools/gradle/gradle-model✖ |
0cf44c0
to
8dbf266
Compare
It looks ok but the windows job keeps failing with the same error
|
8dbf266
to
34f4aa3
Compare
Hopefully #20764 will resolve the issue. I rebase my branch to check if everything is ok |
@aloubyansky CI is green with the rebase :) |
This externalize the gradle model into a common module. This will be useful in both plugin in order to be able to serialize the app model.