How do you apply convention values to the Definiti...
# declarative-gradle
p
How do you apply convention values to the Definition? All the values are finalized when calling the
apply
method. Of course I could create an unsafe Definition but I would like not. What about adding a default method to ProjectFeatureApplyAction called
convention
to add convention values to the definition before the script is evaluated?
j
I am calling orElse on all of them instead of using convention
p
Yeah, thats also possible, and only use the build model for actual data. But in this case, the apply method should not take the parentDefinition but the parent BuildModel