spring-boot-migrator icon indicating copy to clipboard operation
spring-boot-migrator copied to clipboard

Provide BuildFile.hasDependencyMatchingRegex(...)

Open fabapp2 opened this issue 3 years ago • 0 comments

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

fabapp2 avatar Mar 30 '22 10:03 fabapp2