This repository has been archived by the owner on Apr 29, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.sbt
75 lines (68 loc) · 2.59 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
import com.typesafe.sbt.SbtGit.GitKeys._
name := "random-data-generator-magnolia"
version := "2.10-SNAPSHOT"
scalacOptions in Test ++= Seq("-Yrangepos", "-language:higherKinds")
libraryDependencies ++= {
if (scalaVersion.value.startsWith("2.10."))
Seq(compilerPlugin("org.scalamacros" % "paradise" % "2.1.0" cross CrossVersion.full))
else Seq()
}
libraryDependencies ++= {
val Magnolia = "0.17.0"
val Scalacheck = "1.15.3"
val Spec2 = "4.10.3"
Seq(
"com.propensive" %% "magnolia" % Magnolia,
"org.scalacheck" %% "scalacheck" % Scalacheck,
"org.scala-lang" % "scala-reflect" % scalaVersion.value,
"org.specs2" %% "specs2-core" % Spec2 % "test",
"org.specs2" %% "specs2-mock" % Spec2 % "test"
)
}
lazy val standardSettings = Seq(
name := "random-data-generator-magnolia",
scalaVersion := "2.13.0",
crossScalaVersions := Seq("2.13.0", "2.12.6"),
organization := "com.danielasfregola",
licenses += ("Apache-2.0", url("http://www.apache.org/licenses/LICENSE-2.0.html")),
homepage := Some(url("https://github.com/DanielaSfregola/random-data-generator-magnolia")),
scmInfo := Some(
ScmInfo(url("https://github.com/DanielaSfregola/random-data-generator-magnolia"),
"scm:git:[email protected]:DanielaSfregola/random-data-generator-magnolia.git")),
apiURL := None, // TBD scaladoc needed?
pomExtra := (
<developers>
<developer>
<id>DanielaSfregola</id>
<name>Daniela Sfregola</name>
<url>http://danielasfregola.com/</url>
</developer>
</developers>
),
publishMavenStyle := true,
publishTo := {
if (version.value.trim.endsWith("SNAPSHOT")) Some(Opts.resolver.sonatypeSnapshots)
else Some(Opts.resolver.sonatypeStaging)
},
gitRemoteRepo := "[email protected]:DanielaSfregola/random-data-generator-magnolia.git",
scalacOptions ++= Seq("-encoding",
"UTF-8",
"-deprecation",
"-Xfatal-warnings",
"-feature",
"-unchecked",
"-language:postfixOps",
"-language:experimental.macros"),
scalacOptions in (Compile, doc) ++= Seq("-sourcepath", baseDirectory.value.getAbsolutePath),
autoAPIMappings := true,
apiURL := None,
scalacOptions in (Compile, doc) ++= {
val branch = if (version.value.trim.endsWith("SNAPSHOT")) "master" else version.value
Seq(
"-doc-source-url",
"https://github.com/DanielaSfregola/random-data-generator-magnolia/tree/" + branch + "€{FILE_PATH}.scala"
)
}
)
lazy val root = (project in file("."))
.settings(standardSettings)