diff options
author | Jason Zaugg <jzaugg@gmail.com> | 2012-11-05 16:50:09 +0100 |
---|---|---|
committer | Jason Zaugg <jzaugg@gmail.com> | 2012-11-05 16:50:09 +0100 |
commit | d95f8bba6642a4cd8deeddd493afd2b71ae32ec3 (patch) | |
tree | b69e89bc6fd495bf09500388472f203effa850b2 /build.sbt | |
parent | ec1c805c533929e6f78471bc265e3933e0f34c90 (diff) | |
download | scala-async-d95f8bba6642a4cd8deeddd493afd2b71ae32ec3.tar.gz scala-async-d95f8bba6642a4cd8deeddd493afd2b71ae32ec3.tar.bz2 scala-async-d95f8bba6642a4cd8deeddd493afd2b71ae32ec3.zip |
Expand build configuration.
- Enable continuations plugin
- Fill in project metadata
- Enable stricter compiler options
- satisfy -Xlint with some empty parens.
Diffstat (limited to 'build.sbt')
-rw-r--r-- | build.sbt | 48 |
1 files changed, 43 insertions, 5 deletions
@@ -6,9 +6,10 @@ name := "scala-async" version := "0.1-SNAPSHOT" -libraryDependencies <++= (scalaVersion){ sv => Seq( - "org.scala-lang" % "scala-reflect" % sv, - "org.scala-lang" % "scala-compiler" % sv % "test" +libraryDependencies <++= (scalaVersion) { + sv => Seq( + "org.scala-lang" % "scala-reflect" % sv, + "org.scala-lang" % "scala-compiler" % sv % "test" ) } @@ -16,5 +17,42 @@ libraryDependencies += "junit" % "junit-dep" % "4.10" % "test" libraryDependencies += "com.novocode" % "junit-interface" % "0.10-M2" % "test" -// TODO scalac / javac options -// TODO metadata +autoCompilerPlugins := true + +libraryDependencies <<= (scalaVersion, libraryDependencies) { + (ver, deps) => + deps :+ compilerPlugin("org.scala-lang.plugins" % "continuations" % ver) +} + +scalacOptions += "-P:continuations:enable" + +scalacOptions ++= Seq("-deprecation", "-unchecked", "-Xlint") + +description := "An asynchronous programminig facility for Scala, in the spirit of C# await/async" + +homepage := Some(url("http://github.com/phaller/scala-async")) + +startYear := Some(2012) + +licenses +=("Scala license", url("http://github.com/phaller/scala-async/LICENCE")) + +pomExtra := ( + <developers> + <developer> + <id>phaller</id> + <name>Phillipe Haller</name> + <timezone>+1</timezone> + <url>http://github.com/phaller</url> + </developer> + <developer> + <id>retronym</id> + <name>Jason Zaugg</name> + <timezone>+1</timezone> + <url>http://github.com/retronym</url> + </developer> + </developers> + <scm> + <url>git@github.com:phaller/scala-async.git/</url> + <connection>scm:git:git@github.com:phaller/scala-async.git</connection> + </scm> + ) |