Closed HannesWell closed 2 years ago
@jvanzyl can you please have a look at this PR?
Thank you @fbricon do you know of any plans about the next release that contains this change? And are there snapshot builds available anywhere?
@HannesWell I just made a release, should be in Maven Central shortly.
Great! Thank you.
For some Mapping implementations calling
locatePom()
can be a relatively expensive operation, for example because it includes many file-system interactions.Because only the result of the mapping with the highest priority is returned eventually,
findPom()
anddetermineFlavourFromPom()
can be speed-up if Mappings are processed in descending priority-order and simply return the first encountered result. Just like the other get*() methods do.Additionally this PR simplifies the implementation of
getSortedMappings()
at bit.