-
Notifications
You must be signed in to change notification settings - Fork 100
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
feat: expose ConstraintMetaModel at build time #1343
base: main
Are you sure you want to change the base?
Conversation
@@ -15,7 +15,7 @@ public final class SolverConfigBuildItem extends SimpleBuildItem { | |||
* Constructor for multiple solver configurations. | |||
*/ | |||
public SolverConfigBuildItem(Map<String, SolverConfig> solverConfig, GeneratedGizmoClasses generatedGizmoClasses) { | |||
this.solverConfigurations = solverConfig; | |||
this.solverConfigurations = Map.copyOf(solverConfig); |
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.
Please add a comment explaining why this is necessary.
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 am a bit confused at the amount of new code.
@@ -573,6 +577,43 @@ private SolverConfig loadSolverConfig(IndexView indexView, | |||
return solverConfig; | |||
} | |||
|
|||
@BuildStep | |||
void buildConstraintMetaModel(SolverConfigBuildItem solverConfigBuildItem, |
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 new code? I don't understand. Didn't we already have support for this, and therefore the code should have been either reused, or moved from elsewhere?
Quality Gate failedFailed conditions |
Fixes #1323.