Skip to content

.classpath entries for project dependencies with configurations are never generated #77

jorgeortiz85 opened this Issue Jan 10, 2012 · 6 comments

2 participants


Eclipse.scala line 294:

  case dependency if dependency.configuration map (_ == configuration) getOrElse true =>

The == there is comparing a String with a Configuration and will never return true.

@jorgeortiz85 jorgeortiz85 added a commit to foursquare/sbteclipse that referenced this issue Jan 10, 2012
@jorgeortiz85 jorgeortiz85 Work around for configuration bug #77 ca28698


Thanks for your help, but in this case you are wrong: dependency is of type ClasspathDep[ProjectRef]. The member configuration is an Option[String], hence I am comparing String with String


@hseeberger hseeberger closed this Jan 10, 2012
@hseeberger hseeberger reopened this Jan 10, 2012

OMG! I forgot to access the name, which is equal to toString.
Why did you go for contains instead of ==?


My use of contains is a workaround, not a fix. Our default configuration is "compile;test->test;runtime->runtime", so == won't work for us.


I see. Looks like I can learn something about configurations ...

@hseeberger hseeberger pushed a commit that closed this issue Feb 4, 2012
Heiko Seeberger closes #77: .classpath entries for project dependencies with configur…
…ations are never generated
@hseeberger hseeberger closed this in 2e3391c Feb 4, 2012


This issue should be fixed in 2.0.0-SNAPSHOT. Could you please give it a try?


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.