I think this is because you have the sbt-xsat2 plugin enabled globally.
That plugin depends on daffodil-lib-3.5.0 but in a custom "xsat2" ivy
configuration. And this means that technically daffodil-lib (and all
other Daffodil subprojects) depend on xsat2, which depends on
daffodil-lib, so there's a circular dependency.
But because xsat2 is in a separate ivy configuration and the way xsat2
works, it shouldn't cause any issues, I think. You can confirm by looked
at the classpath, e.g.
sbt "show daffodil-lib/dependencyClasspath"
That won't include xsat or any of its dependencies (including older
versions of Daffodil).
Ideally, Daffodil (and as many dependencies as possible) would be
removed from the xsat2-plugin. SBT does a terrible job at
compartmentalizing plugins and their dependencies and causes weird
issues like this.
On 2023-10-28 08:29 PM, Mike Beckerle wrote:
I'm getting this warning:
(yes I've set my build.sbt to 3.7.0-SNAPSHOT for now)
What would cause a dependency from daffodil-lib to an earlier version of
daffodil lib?
[warn] circular dependency found:
org.apache.daffodil#daffodil-lib_2.12;3.7.0-SNAPSHOT->com.owlcyberdefense#xsat2_2.12;2.2.0->org.apache.daffodil#daffodil-lib_2.12;3.5.0
(I removed the 3.6.0-rc1 resolver from my ~/.sbt/1.0/build.sbt thinking
that might be it. Didn't help.)
This is just a warning, but are others seeing this?