Created
March 28, 2010 03:57
-
-
Save harrah/346559 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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