This repository was archived by the owner on Nov 15, 2025. It is now read-only.
forked from jorgeortiz85/scala-time
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathbuild.sbt
More file actions
44 lines (39 loc) · 1.27 KB
/
build.sbt
File metadata and controls
44 lines (39 loc) · 1.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
val basicSettings = Seq(
organization := "com.thenewmotion",
crossScalaVersions := Seq(tnm.ScalaVersion.curr, tnm.ScalaVersion.prev, tnm.ScalaVersion.aged),
scalaVersion := tnm.ScalaVersion.curr,
releaseCrossBuild := true,
publishMavenStyle := true,
scalacOptions := Seq(
"-encoding", "UTF-8",
"-unchecked",
"-deprecation",
"-feature",
"-Xlog-reflective-calls"
),
licenses := Seq("Apache License, Version 2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0"))
)
def proj(name: String, dir: String) = Project(id = name, base = file(dir))
.settings(basicSettings: _*)
.enablePlugins(OssLibPlugin)
val jodaTime = "joda-time" % "joda-time" % "2.6"
val jodaConvert = "org.joda" % "joda-convert" % "1.7"
val scalaz = "org.scalaz" %% "scalaz-core" % "7.2.29"
val time = proj("time", "time")
.settings(description := "Scala wrapper around Joda-time")
.settings(
libraryDependencies ++= Seq(
jodaTime,
jodaConvert
)
)
val scalazBindings = proj("time-scalaz-bindings", "time-scalaz-bindings")
.dependsOn(time)
.settings(description := "Scalaz bindings for time")
.settings(
libraryDependencies +=
scalaz
)
val timeParent = proj("time-parent", ".")
.settings(publishArtifact := false)
.aggregate(time, scalazBindings)