mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 16:28:12 -07:00
Log exclusions.
This commit is contained in:
parent
3f1155a280
commit
66b39aa213
1 changed files with 8 additions and 2 deletions
|
@ -139,8 +139,14 @@ class DependencyManager @Inject constructor(val executors: KobaltExecutors,
|
||||||
* Should probably make exclusion more generic (full on string) or allow exclusion to be specified
|
* Should probably make exclusion more generic (full on string) or allow exclusion to be specified
|
||||||
* formally by groupId or artifactId.
|
* formally by groupId or artifactId.
|
||||||
*/
|
*/
|
||||||
fun isDependencyExcluded(dep: IClasspathDependency, excluded: List<IClasspathDependency>)
|
fun isDependencyExcluded(dep: IClasspathDependency, excluded: List<IClasspathDependency>): Boolean {
|
||||||
= excluded.any { excluded -> dep.id.startsWith(excluded.id) }
|
excluded.any { excluded -> dep.id.startsWith(excluded.id) }.let { result ->
|
||||||
|
if (result) {
|
||||||
|
context.logger.log(project?.name ?: "", 2, " Excluding dependency $dep")
|
||||||
|
}
|
||||||
|
return result
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Dependencies get reordered by transitiveClosure() but since we just added a bunch of new ones,
|
// Dependencies get reordered by transitiveClosure() but since we just added a bunch of new ones,
|
||||||
// we need to reorder them again in case we're adding dependencies that are already present
|
// we need to reorder them again in case we're adding dependencies that are already present
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue