-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
52 lines (49 loc) · 1.67 KB
/
build.sbt
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
45
46
47
48
49
50
51
52
lazy val commonSettings = Seq(
version := "1.0.0",
scalaVersion := "2.12.0",
crossScalaVersions := Seq("2.11.8", "2.12.0"),
organization := "com.unstablebuild",
organizationName := "unstablebuild.com",
homepage := Some(url("https://github.com/lucastorri/settler")),
organizationHomepage := Some(url("http://unstablebuild.com")),
licenses := Seq("MIT License" -> url("https://opensource.org/licenses/MIT")),
libraryDependencies ++= Seq("org.scalatest" %% "scalatest" % "3.0.0" % "test"),
resolvers ++= Seq(),
scalacOptions ++= Seq("-deprecation"),
publishMavenStyle := true,
publishTo := {
val nexus = "https://oss.sonatype.org/"
if (isSnapshot.value) Some("snapshots" at nexus + "content/repositories/snapshots")
else Some("releases" at nexus + "service/local/staging/deploy/maven2")
},
publishArtifact in Test := false,
pomIncludeRepository := (_ => false),
pomExtra :=
<scm>
<url>[email protected]:lucastorri/settler.git</url>
<connection>scm:git:[email protected]:lucastorri/settler.git</connection>
</scm>
<developers>
<developer>
<id>lucastorri</id>
<name>Lucas Torri</name>
<url>http://unstablebuild.com</url>
</developer>
</developers>
)
lazy val root = project
.in(file("."))
.settings(commonSettings: _*)
.dependsOn(macros)
.settings(name := "settler")
lazy val macros = project
.in(file("macros"))
.settings(commonSettings: _*)
.settings(
name := "settler-macros",
libraryDependencies ++= Seq(
"com.typesafe" % "config" % "1.3.0",
"org.scala-lang" % "scala-reflect" % scalaVersion.value
)
)
enablePlugins(com.lucidchart.sbt.scalafmt.ScalafmtPlugin)