-
Notifications
You must be signed in to change notification settings - Fork 199
Commit
Signed-off-by: Alex Saveau <saveau.alexandre@gmail.com>
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -68,7 +68,14 @@ class DependencyUpdates { | |
Set<Configuration> configurations = projectConfigs.get(proj) | ||
Resolver resolver = new Resolver(proj, resolutionStrategy, checkConstraints) | ||
configurations.collect { Configuration config -> | ||
resolve(resolver, proj, config) | ||
def isUsefulConfiguration = !config.canBeResolved || config.canBeConsumed || | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
anuraaga
Collaborator
|
||
config.name == 'annotationProcessor' || config.name == 'kapt' | ||
This comment has been minimized.
Sorry, something went wrong.
chrimaeon
|
||
|
||
if (isUsefulConfiguration) { | ||
resolve(resolver, proj, config) | ||
} else { | ||
[] | ||
} | ||
}.flatten() as Set<DependencyStatus> | ||
}.flatten() as Set<DependencyStatus> | ||
} | ||
|
these changes brake some configurations resolution added with the android gradle plugin - i.e.
lintCheck
andlintPublish
which arecanBeResolved=true
andcanBeConsumed=false