Skip to content

Commit

Permalink
Make getRecommendedVersionRecursive public for use in another plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
OdysseusLives committed May 16, 2019
1 parent 7cd008b commit 2096ddb
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.List;
import java.util.Set;

public class DependencyRecommendationsPlugin implements Plugin<Project> {
public static final String NEBULA_RECOMMENDER_BOM = "nebulaRecommenderBom";
Expand Down Expand Up @@ -146,12 +145,12 @@ public void execute(DependencyResolveDetails details) {
}

private boolean isExcludedConfiguration(String confName) {
if(recommendationProviderContainer.getExcludedConfigurations().contains(confName)) {
if (recommendationProviderContainer.getExcludedConfigurations().contains(confName)) {
return true;
}

for(String prefix : recommendationProviderContainer.getExcludedConfigurationPrefixes()) {
if(confName.startsWith(prefix)) {
for (String prefix : recommendationProviderContainer.getExcludedConfigurationPrefixes()) {
if (confName.startsWith(prefix)) {
return true;
}
}
Expand Down Expand Up @@ -214,7 +213,7 @@ protected void enhancePublicationsWithBomProducer(Project project) {
* @param mvSelector the module to lookup
* @return the recommended version or <code>null</code>
*/
protected String getRecommendedVersionRecursive(Project project, ModuleVersionSelector mvSelector) {
public String getRecommendedVersionRecursive(Project project, ModuleVersionSelector mvSelector) {
String version = project.getExtensions().getByType(RecommendationProviderContainer.class)
.getRecommendedVersion(mvSelector.getGroup(), mvSelector.getName());
if (version != null)
Expand Down

0 comments on commit 2096ddb

Please sign in to comment.