mirror of https://github.com/sbt/sbt.git
- Add Initialize.dynamicDependencies (Seq[Any]) in util-collection to carry (AttributeKey, ScopeFilter) from .all() without changing static dependency graph. - Add DynamicDepsInitialize wrapper and Def.withDynamicDependencies; use them in SettingKeyAll.all and TaskKeyAll.all when the init is a KeyedInitialize. - In LintUnused, collect init.dynamicDependencies from all settings, expand via ScopeFilter.expandDynamicDeps (build ScopeFilter.Data from structure, apply each filter to get scopes, add ScopedKey(scope, key) to used). - Add ScopeFilter.dataFromStructure and expandDynamicDeps with try/catch so bad filters or structure do not break the lint. |
||
|---|---|---|
| .. | ||
| src | ||
| NOTICE | ||