aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorChristopher Vogt <oss.nsp@cvogt.org>2016-03-12 16:06:14 -0500
committerChristopher Vogt <oss.nsp@cvogt.org>2016-03-12 16:06:14 -0500
commit906db6c55289d9aba5da824d5f2f3d2cae70813e (patch)
tree1b5fea4598ede93c60f9940b6776f2a0506daa46 /README.md
parentb143c01a2e180b647eb27338cb7302aa38ef10c6 (diff)
downloadcbt-906db6c55289d9aba5da824d5f2f3d2cae70813e.tar.gz
cbt-906db6c55289d9aba5da824d5f2f3d2cae70813e.tar.bz2
cbt-906db6c55289d9aba5da824d5f2f3d2cae70813e.zip
Improved how to express dependencies
Add - Constructor syntax for cross-scala-version dependencies (as rightfully requested on reddit) and encouraged over SBT's still supported operator syntax - Add support for classifiers other than "sources"
Diffstat (limited to 'README.md')
-rw-r--r--README.md7
1 files changed, 6 insertions, 1 deletions
diff --git a/README.md b/README.md
index 5fd89e5..36f1f50 100644
--- a/README.md
+++ b/README.md
@@ -49,7 +49,12 @@ class Build(context: cbt.Context) extends PackageBuild(context){
override def groupId = "org.cvogt"
override def artifactId = "play-json-extensions"
override def dependencies = super.dependencies ++ Vector(
- "com.typesafe.play" %% "play-json" % "2.4.4"
+ // encouraged way to declare dependencies
+ ScalaDependency("com.typesafe.play", "play-json", "2.4.4"),
+ JavaDependency("joda-time", "joda-time", "2.9.2")
+ // also supported for SBT syntax compatibility:
+ // "com.typesafe.play" %% "play-json" % "2.4.4"
+ // "joda-time" % "joda-time % "2.9.2"
)
override def compile = {
println("Compiling...")