Skip to content

Commit

Permalink
DependencyService: getResolutionAlternatives should be a List<String> (
Browse files Browse the repository at this point in the history
  • Loading branch information
rpalcolea authored Aug 25, 2021
1 parent e6f55f2 commit a9deb55
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,7 @@ class DependencyService {
def method = configuration.metaClass.getMetaMethod('getResolutionAlternatives')
if (method != null) {
def alternatives = configuration.getResolutionAlternatives()
if (alternatives != null && alternatives.size > 0) {
if (alternatives != null && alternatives instanceof List<String> && alternatives.size() > 0) {
return true
}
}
Expand Down

0 comments on commit a9deb55

Please sign in to comment.