Search code examples
sbtsbteclipse

How can I show a source directory to sbteclipse without adding it to the Compile or Test configuration


I have tests under sbt's unmanagedSourceDirectories in the IntegrationTest configuration that I want to keep separate from the Test configuration.

Is there a way to have sbteclipse add that source directory to the eclipse .classpath file without adding it to the Compile or Test configuration?


Solution

  • It looks like the way to do this is to add the following setting to you build.sbt:

    EclipseKeys.configurations := Set(Compile, Test, IntegrationTest)
    

    Where Compile and Test are the defaults and I just added the IntegrationTest configuration that I wanted to be added.