Skip to content

Commit

Permalink
Merge pull request #120 from chali/Gradle7Compatibility
Browse files Browse the repository at this point in the history
Gradle 7.0 compatibility
  • Loading branch information
chali authored Feb 18, 2021
2 parents a8ec41d + afa18d2 commit 6b8c42a
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,7 @@ public class RecommendationProviderContainer {
public static final RecommendationStrategies ConflictResolved = RecommendationStrategies.ConflictResolved;

public RecommendationProviderContainer(Project project) {
if (GradleVersion.current().getBaseVersion().compareTo(GradleVersion.version("6.1")) >= 0) {
createList(project);
} else {
providers = new DefaultNamedDomainObjectList<RecommendationProvider>(RecommendationProvider.class, null, new RecommendationProviderNamer());
}
createList(project);
this.project = project;
this.mavenBomProvider = getMavenBomRecommendationProvider();
providers.add(this.mavenBomProvider);
Expand Down

0 comments on commit 6b8c42a

Please sign in to comment.