mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
gradle: do not fail if there is an unresolved dependency a configuration has
This commit is contained in:
+10
-9
@@ -128,15 +128,16 @@ class DependencyResolverImpl implements DependencyResolver {
|
||||
componentResults.each { componentResultsMap.put(it.id, it) }
|
||||
|
||||
ResolutionResult resolutionResult = configuration.incoming.resolutionResult
|
||||
def fileDeps = new LinkedHashSet<File>(configuration.incoming.files.files);
|
||||
artifactMap
|
||||
artifactMap.values().each {
|
||||
fileDeps.remove(it.file)
|
||||
}
|
||||
fileDeps.each {
|
||||
def fileCollectionDependency = new DefaultFileCollectionDependency([it])
|
||||
fileCollectionDependency.scope = scope
|
||||
result.add(fileCollectionDependency)
|
||||
if(!configuration.resolvedConfiguration.hasError()) {
|
||||
def fileDeps = new LinkedHashSet<File>(configuration.incoming.files.files);
|
||||
artifactMap.values().each {
|
||||
fileDeps.remove(it.file)
|
||||
}
|
||||
fileDeps.each {
|
||||
def fileCollectionDependency = new DefaultFileCollectionDependency([it])
|
||||
fileCollectionDependency.scope = scope
|
||||
result.add(fileCollectionDependency)
|
||||
}
|
||||
}
|
||||
result.addAll(transform(Lists.newArrayList(), resolutionResult.root.dependencies, artifactMap, componentResultsMap, scope))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user