wilkinsona / project-generator

3 stars 4 forks source link

Make it easier to bridge the metadata from the build #69

Closed snicoll closed 5 years ago

snicoll commented 5 years ago

There is some piece of code in the integration that requires to go from the list of configured dependencies (i.e. build.dependencies()) to a list of dependency metadata object.

A typical example is "is the xyz facet" added to the current build. We should see how we could bridge those two worlds easily.

snicoll commented 5 years ago

I'd like the metadata to stay untouched as I think we'll probably move it to an independent module in the future. However, we could have a class that uses the metadata internally to offer high-level function based on elements of the new API, something like public boolean hasFacet(Build build, String facet).

We could then remove the duplicates and start using that bridge instead of the metadata itself.