Skip to content

Commit

Permalink
Remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
mhalbritter committed Aug 21, 2024
1 parent e62e17f commit ce9eb98
Showing 1 changed file with 2 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,24 +84,8 @@ void dependencyStarterConfigurationIsCorrect(Dependency dependency, List<BillOfM

private List<String> collectDependencies(Dependency dependency, List<BillOfMaterials> boms,
List<RemoteRepository> repositories) {
try {
return DependencyResolver.resolveDependencies(Homes.MAVEN, dependency.getGroupId(),
dependency.getArtifactId(), dependency.getVersion(), boms, repositories);
}
catch (RuntimeException ex) {
// ActiveMQ starter does not exist with Spring Boot 3.0
if (ex.getMessage().contains("rg.springframework.boot:spring-boot-starter-activemq:pom:")) {
return null;
}
// Known issue with Spring Cloud Contract to be fixed in the next release
// See
// https://github.com/spring-cloud/spring-cloud-contract/commit/13c7d477fbbc856b319600874a11aabcef283df7
if (ex.getMessage()
.contains("org.springframework.cloud:spring-cloud-starter-contract-verifier:pom:2.2.3.RELEASE")) {
return null;
}
throw ex;
}
return DependencyResolver.resolveDependencies(Homes.MAVEN, dependency.getGroupId(), dependency.getArtifactId(),
dependency.getVersion(), boms, repositories);
}

Stream<Arguments> parameters() {
Expand Down

0 comments on commit ce9eb98

Please sign in to comment.