Skip to content

Instantly share code, notes, and snippets.

@harrah
Created March 28, 2010 03:57
Show Gist options
  • Save harrah/346559 to your computer and use it in GitHub Desktop.
Save harrah/346559 to your computer and use it in GitHub Desktop.
import sbt._
class PrivateConfigurations(info: ProjectInfo) extends DefaultProject(info)
{
// define a custom configuration that will not get published
val compileOnly = config("compileOnly") hide
// add all dependencies in that configuration to the compile classpath
override def compileClasspath = super.compileClasspath +++ managedClasspath(compileOnly)
// declare junit to be in compile only
val junit = "junit" % "junit" % "4.7" % compileOnly.name
// declare ScalaCheck to be in 'test'. 'test' is not published either.
val scalacheck = "org.scala-tools.testing" %% "scalacheck" % "1.6" % "test"
// declare SBinary in the normal, 'compile' configuration. It is the only dependency that will get published.
val sbinary = "org.scala-tools.sbinary" %% "sbinary" % "0.3"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment