sbt-eclipse icon indicating copy to clipboard operation
sbt-eclipse copied to clipboard

useProjectID does not work in multi-project settings

Open shengc opened this issue 9 years ago • 2 comments

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

shengc avatar Jul 16 '15 18:07 shengc

:+1: I've run into the same issue.

@ShengC have you found a workaround that does not require to manually update the project dependencies?

Luegg avatar Sep 22 '15 09:09 Luegg

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).

sjrd avatar Sep 17 '16 11:09 sjrd