Add comments to `SbtChainResolver` implementation

This commit is contained in:
jvican 2017-05-10 20:34:41 +02:00
parent 57d5908737
commit 7391290d8a
No known key found for this signature in database
GPG Key ID: 42DAFA0F112E8050
1 changed files with 5 additions and 0 deletions

View File

@ -255,6 +255,11 @@ private[sbt] case class SbtChainResolver(
* This is a custom sbt chain operation that produces better error output and deals with
* cases that the conventional ivy resolver does not. It accumulates the resolution of
* several resolvers and returns the module which fits the provided resolution strategy.
*
* These are the differences with regard to the default ivy [[ChainResolver]]:
* 1. It skips resolution if "return first" is set to true.
* 2. It skips resolution if a previously resolved or cached resolution is found.
* 3. It always checks all the resolvers and compares timestamps for changing dependencies.
*/
def getDependency(dd: DependencyDescriptor, data0: ResolveData): ResolvedModuleRevision = {
val isDynamic = dd.isChanging || IvySbt.isChanging(dd.getDependencyRevisionId)