spring-boot-migrator
spring-boot-migrator copied to clipboard
Provide BuildFile.hasDependencyMatchingRegex(...)
What needs to be done
Provide method buildFile.hasDependencyMatchingRegex() which considers transitive dependencies too as counterpart to buildFile.hasDeclaredDependencyMatchingRegex()
Acceptance Criteria
hasDependencyMatchingRegex
Given pom.xml contains a dependency that brings a transitive dependency
When hasDependencyMatchingRegex(<regex for the transitive dependency>) is called on this BuildFile
Then this method should return true
Given pom.xml contains a dependency that brings a transitive dependency
When hasDependencyMatchingRegex(<regex for the declared dependency>) is called on this BuildFile
Then this method should return true
hasDeclaredDependencyMatchingRegex
Given pom.xml contains a dependency that brings a transitive dependency
When hasDeclaredDependencyMatchingRegex(<regex for the transitive dependency>) is called on this BuildFile
Then this method should return false
Given pom.xml contains a dependency that brings a transitive dependency
When hasDeclaredDependencyMatchingRegex(<regex for the declared dependency>) is called on this BuildFile
Then this method should return true
Additional Information
See MigrateWlsEjbDeploymentDescriptor.incorporateIntoSourceFile():69