sbt-eclipse
sbt-eclipse copied to clipboard
useProjectID does not work in multi-project settings
lazy val a = project.in( file("a" ).settings( name := "project-a" ).settings( EclipseKeys.useProjectId := true )
lazy val b = project.in( file("b") ).dependsOn(a)
after running eclipse
, eclipse project name for a is indeed a
, however, in .classpath of b
, name of the dependent project from a
is project-a
not a
:+1: I've run into the same issue.
@ShengC have you found a workaround that does not require to manually update the project dependencies?
Bringing some attention to this issue, a year later. It's annoying for cross-compiling Scala/Scala.js projects, because useProjectId
is the only way to get projects with different Eclipse names for the JVM and JS parts of a cross-project (because their sbt name
is the same).