-
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
Support reading build-time config properties in code generation #20819
Conversation
|
||
compileJavaTask.dependsOn(quarkusGenerateCode); | ||
compileJavaTask.mustRunAfter(quarkusGenerateCodeDev); | ||
compileJavaTask.mustRunAfter(quarkusGenerateCode); |
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.
@glefloch can you think of a trick to make quarkusGenerateCodeDev
run only when the intention is to launch the dev mode? Perhaps, the task can be disabled by default and enabled by the quarkusDev
somehow?
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.
right, I'm working a branch, that will only register task instead of creating them. This should allow gradle to only create task depending on the task graph.
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.
Great, thanks @glefloch Should we merge this one or wait on your PR first?
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.
We can merge this one.
@michalszynkiewicz could you please look into the CI failures? |
checking |
This workflow status is outdated as a new workflow run has been triggered. Failing Jobs - Building 382d33b
Full information is available in the Build summary check run. Failures⚙️ Gradle Tests - JDK 11 #- Failing: integration-tests/gradle
📦 integration-tests/gradle✖
⚙️ Gradle Tests - JDK 11 Windows #- Failing: integration-tests/gradle
📦 integration-tests/gradle✖
⚙️ Maven Tests - JDK 11 #- Failing: integration-tests/maven
📦 integration-tests/maven✖
✖
⚙️ Maven Tests - JDK 11 Windows #- Failing: integration-tests/maven
📦 integration-tests/maven✖
✖
|
It's definitely my PR that changes breaks something.
I'll investigate further |
382d33b
to
afaca21
Compare
public Map<String, String> properties() { | ||
return properties; | ||
public Config config() { | ||
return config; | ||
} |
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.
@michalszynkiewicz are we sure no one else in the ecosystem is using this API?
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 haven't heard of anyone...
fixed |
fixes #19389