Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add documentation for sbt 0.10 configuration

  • Loading branch information...
commit 37229a9caedb71c7a5a4f777e8086081b2ecdaa0 1 parent 531d678
Johannes Rudolph authored
Showing with 30 additions and 15 deletions.
  1. +6 −1 docs/source/SbtStub.scala
  2. +24 −14 docs/source/scala-src/Installation.scala
7 docs/source/SbtStub.scala
View
@@ -11,6 +11,11 @@ package object sbt {
def %(next: String): String = next
def %%(next: String): String = next
def at(next: String): String = next
- }
+ def :=(a: Any) = null
+ }
+
+ var resolvers = ""
+ def autoCompilerPlugins = strHasPercentOps(null)
+ def addCompilerPlugin(str: String){}
}
38 docs/source/scala-src/Installation.scala
View
@@ -13,20 +13,30 @@ trait StandaloneUsage {
}
trait UseWithSBT {
- /* See the usage example at http://github.com/jrudolph/scala-enhanced-strings/tree/master/usage
- or here: */
-
- /* Starting with a normal project descriptor... */
- import sbt._
-
- class ESUsageExample(info: ProjectInfo)
- extends DefaultProject(info)
- /* ... extend your project descriptor */
- with AutoCompilerPlugins {
-
- val virtualVoid = "Virtual-Void repository" at "http://mvn.virtual-void.net"
-
- val es = compilerPlugin("net.virtualvoid" %% "scala-enhanced-strings" % "0.5.2")
+ if ("sbt.version" == 0.7) {
+ /* See the usage example at http://github.com/jrudolph/scala-enhanced-strings/tree/master/usage
+ or here: */
+
+ /* Starting with a normal project descriptor... */
+ import sbt._
+
+ class ESUsageExample(info: ProjectInfo)
+ extends DefaultProject(info)
+ /* ... extend your project descriptor */
+ with AutoCompilerPlugins {
+
+ val virtualVoid = "Virtual-Void repository" at "http://mvn.virtual-void.net"
+
+ val es = compilerPlugin("net.virtualvoid" %% "scala-enhanced-strings" % "0.5.2")
+ }
+ } else if ("sbt.version" >= "0.10") {
+ import sbt._
+ /* Adding this to your build configuration should work: */
+
+ resolvers += "Virtual-Void repository" at "http://mvn.virtual-void.net"
+
+ autoCompilerPlugins := true
+ addCompilerPlugin("net.virtualvoid" %% "scala-enhanced-strings" % "0.5.2")
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.