Coursier: Seems like coursier doesn't override `evicted`

Created on 24 Feb 2016  路  3Comments  路  Source: coursier/coursier

When I run evicted, it causes regular sbt artifact download (even though coursier already downloaded them)

bug low hanging fruit sbt-coursier

Most helpful comment

Implementing that one should basically "just" be a matter of adding an implementation for the evicted task of sbt (around here, calling a new method in Tasks.scala or a new Evicted.scala file, say).

This task should rely on the value of the coursierResolutions key. The corresponding Resolution knows the whole dependency graph (dependencies lists... the dependencies, rootDependencies the root ones, finalDependencies gives the dependencies of a module - the dependency graph can be walked / explored with these methods). Evicted versions can be identified this way.

All 3 comments

Looks like this one has to be overridden too...

Implementing that one should basically "just" be a matter of adding an implementation for the evicted task of sbt (around here, calling a new method in Tasks.scala or a new Evicted.scala file, say).

This task should rely on the value of the coursierResolutions key. The corresponding Resolution knows the whole dependency graph (dependencies lists... the dependencies, rootDependencies the root ones, finalDependencies gives the dependencies of a module - the dependency graph can be walked / explored with these methods). Evicted versions can be identified this way.

Closing this. evicted should work fine with sbt-lm-coursier (addSbtPlugin("io.get-coursier" % "sbt-lm-coursier" % "2.0.0-RC3-1")), that can be substituted to sbt-coursier. It should also work in the coming releases of sbt 1.3 (> 1.3.0-RC3).

Was this page helpful?
0 / 5 - 0 ratings