paypal / butterfly

Application transformation tool
https://paypal.github.io/butterfly/
MIT License
48 stars 50 forks source link

Add PomParentMatch single condition #278

Closed fabiocarvalho777 closed 4 years ago

fabiocarvalho777 commented 5 years ago

This condition should return true only if the given pom file has a parent artifact, and it matches the specified groupId, artifactId and version. Optionally, if no version is provided, then it should only check for groupId and artifactId.

This condition class should be placed at com.paypal.butterfly.utilities.conditions.pom. Class com.paypal.butterfly.utilities.conditions.pom.PomDependencyExists could be used as an example.

Unit tests should be added and code coverage must be at least 90%.