Abstract over dependency kind in Compile

This follows up on my work to make it easier to add new dependency kind in sbt.

This is the last part that needs to be adapted to take advantage of the new infrastructure that has been introduced by :
 - Abstract over dependency kind in Analysis (#1340)
 - Don't hardcode relations in TextAnalysisFormat (#1572)

/cc @xeno-by
Why is this needed? If nothing else is modified in the file I'm guessing this import is a dead code.