/***
scalaVersion := "2.9.2"

libraryDependencies ++= Seq("org.scala-sbt" % "sbt" % "0.12.2")
*/

import sbt._
object Main extends Build {

  val unmanagedBases = SettingKey[Seq[File]]("unmanagedBases", "The default directory for manually managed libraries.")

  val main = Project("root", file(".")).settings(
    unmanagedBases <<= Keys.baseDirectory { base => base / "lib-a" :: base / "lib-b" :: Nil }, Keys.unmanagedJars <<=
      (Keys.configuration in Compile, unmanagedBases, Keys.includeFilter in Keys.unmanagedJars,
        Keys.excludeFilter in Keys.unmanagedJars) map { (config, base, filter, excl) =>
          (base * (filter -- excl) +++ (base / config.name).descendantsExcept(filter, excl)).classpath
        }
  )

}

        
  
Processing...
[info] Loading project definition from /var/tmp/renderersxD046yrRV/project/project
[info] Loading project definition from /var/tmp/renderersxD046yrRV/project
[info] Set current project to rendererWorker (in build file:/var/tmp/renderersxD046yrRV/)
[info] Reapplying settings...
[info] Set current project to rendererWorker (in build file:/var/tmp/renderersxD046yrRV/)
[info] Formatting 1 Scala source {file:/var/tmp/renderersxD046yrRV/}rendererWorker(compile) ...
[info] Reformatted 1 Scala source {file:/var/tmp/renderersxD046yrRV/}rendererWorker(compile).
[info] Updating {file:/var/tmp/renderersxD046yrRV/}rendererWorker...
[info] Resolving org.scala-sbt#sbt;0.12.2 ...
[info] Resolving org.scala-sbt#main;0.12.2 ...
[info] Resolving org.scala-sbt#actions;0.12.2 ...
[info] Resolving org.scala-sbt#classpath;0.12.2 ...
[info] Resolving org.scala-sbt#launcher-interface;0.12.2 ...
[info] Resolving org.scala-lang#scala-library;2.9.2 ...
[info] Resolving org.scala-sbt#interface;0.12.2 ...
[info] Resolving org.scala-sbt#io;0.12.2 ...
[info] Resolving org.scala-sbt#control;0.12.2 ...
[info] Resolving org.scala-lang#scala-compiler;2.9.2 ...
[info] Resolving org.scala-sbt#completion;0.12.2 ...
[info] Resolving org.scala-sbt#collections;0.12.2 ...
[info] Resolving jline#jline;1.0 ...
[info] Resolving org.scala-sbt#api;0.12.2 ...
[info] Resolving org.scala-sbt#compiler-integration;0.12.2 ...
[info] Resolving org.scala-sbt#incremental-compiler;0.12.2 ...
[info] Resolving org.scala-sbt#logging;0.12.2 ...
[info] Resolving org.scala-sbt#process;0.12.2 ...
[info] Resolving org.scala-sbt#compile;0.12.2 ...
[info] Resolving org.scala-sbt#persist;0.12.2 ...
[info] Resolving org.scala-tools.sbinary#sbinary_2.9.0;0.4.0 ...
[info] Resolving org.scala-sbt#classfile;0.12.2 ...
[info] Resolving org.scala-sbt#compiler-ivy-integration;0.12.2 ...
[info] Resolving org.scala-sbt#ivy;0.12.2 ...
[info] Resolving org.apache.ivy#ivy;2.3.0-rc1 ...
[info] Resolving com.jcraft#jsch;0.1.46 ...
[info] Resolving commons-httpclient#commons-httpclient;3.1 ...
[info] Resolving commons-logging#commons-logging;1.0.4 ...
[info] Resolving commons-codec#commons-codec;1.2 ...
[info] Resolving org.scala-sbt#run;0.12.2 ...
[info] Resolving org.scala-sbt#task-system;0.12.2 ...
[info] Resolving org.scala-sbt#tasks;0.12.2 ...
[info] Resolving org.scala-sbt#tracking;0.12.2 ...
[info] Resolving org.scala-sbt#cache;0.12.2 ...
[info] Resolving org.scala-sbt#testing;0.12.2 ...
[info] Resolving org.scala-sbt#test-agent;0.12.2 ...
[info] Resolving org.scala-tools.testing#test-interface;0.5 ...
[info] Resolving org.scala-sbt#command;0.12.2 ...
[info] Resolving org.scala-sbt#compiler-interface;0.12.2 ...
[info] Resolving org.scala-sbt#precompiled-2_8_2;0.12.2 ...
[info] Resolving org.scala-sbt#precompiled-2_10_0;0.12.2 ...
[info] Resolving org.scala-tools.sxr#sxr_2.9.2;0.2.8-SNAPSHOT ...
[info] Resolving com.foursquare.lint#linter_2.9.2;0.1-SNAPSHOT ...
[info] Done updating.
[info] Compiling 1 Scala source to /var/tmp/renderersxD046yrRV/target/classes...
[warn] /var/tmp/renderersxD046yrRV/src/main/scala/test.scala:6: Wildcard imports should be avoided.  Favor import selector clauses.
[warn] import sbt._
[warn]        ^
[warn] one warning found
[success] Total time: 8 s, completed Feb 18, 2013 2:45:55 PM
Now running...
[success] Total time: 0 s, completed Feb 18, 2013 2:45:55 PM