Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Are cyclic dependencies supported in SBT?

Tags:

scala

sbt

I have seen previous discussions, but thought I'd re-ask the question for newer versions of SBT.

Is there a way to create a cyclical dependency in SBT 0.13+?

Thanks

like image 261
gregsilin Avatar asked Aug 28 '14 21:08

gregsilin


People also ask

How are cyclic dependencies detected?

Analyze cyclic dependenciesFrom the main menu, select Code | Analyze Code | Cyclic Dependencies. In the Specify Cyclic Dependency Analysis Scope dialog, select the scope of files that you want to analyze.

How do you fix cyclic dependency?

There are a couple of options to get rid of circular dependencies. For a longer chain, A -> B -> C -> D -> A , if one of the references is removed (for instance, the D -> A reference), the cyclic reference pattern is broken, as well. For simpler patterns, such as A -> B -> A , refactoring may be necessary.


1 Answers

Are you talking about library dependencies or task dependencies?

If it's library dependencies, we do not recommend it, but underlying resolver engine probably will handle it.

If you're talking about task dependencies, we do not support it.

like image 120
Eugene Yokota Avatar answered Oct 06 '22 23:10

Eugene Yokota