One library dependency removes another

26 views
Skip to first unread message

Alex Voronov

unread,
May 22, 2012, 7:14:41 AM5/22/12
to simple-b...@googlegroups.com
Hi! 

I have a strange behavior in sbt 0.11.3 when one library dependency, org.sat4j.pb, removes another one, org.sat4j.core. 

Minimum example looks as following (build.sbt):

libraryDependencies ++= Seq("org.sat4j" % "org.sat4j.pb" % "2.3.1", "org.sat4j" % "org.sat4j.core" % "2.3.1")


Then when I run sbt, the library is in the list of dependencies, but is not in the classpath: 

> show library-dependencies
[info] List(org.scala-lang:scala-library:2.9.1, org.sat4j:org.sat4j.pb:2.3.1, org.sat4j:org.sat4j.core:2.3.1)
> show dependency-classpath
[info] ArrayBuffer(Attributed(/Users/alex/.sbt/boot/scala-2.9.1/lib/scala-library.jar), Attributed(/Users/alex/.ivy2/cache/org.sat4j/org.sat4j.pb/jars/org.sat4j.pb-2.3.1.jar))



This looks strange. Am I missing something?

Alex

Mark Harrah

unread,
May 23, 2012, 10:15:15 PM5/23/12
to simple-b...@googlegroups.com
Hi Alex,
I don't think so. It looks like it might be caused by a workaround in sbt. Could you open an issue for it please?

Thanks,
Mark

> Alex
>

Alex Voronov

unread,
May 24, 2012, 7:08:00 AM5/24/12
to simple-b...@googlegroups.com
Hi Mark, thanks for your reply! I opened an issue: https://github.com/harrah/xsbt/issues/468


On Thursday, 24 May 2012 04:15:15 UTC+2, Mark Harrah wrote:
Hi Alex,

On Tue, 22 May 2012 04:14:41 -0700 (PDT)
Alex Voronov wrote:
Reply all
Reply to author
Forward
0 new messages