This repository was archived by the owner on Apr 27, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild.sbt
66 lines (47 loc) · 1.84 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
import sbt.url
name := "helisa"
organization := "com.softwaremill"
scalaVersion := "2.12.8"
lazy val repoUrl = "https://github.com/softwaremill/helisa"
addCompilerPlugin("org.spire-math" %% "kind-projector" % "0.9.8")
scalacOptions ++= Seq("-feature", "-Ypartial-unification")
val jeneticsDeps = Seq(
"jenetics",
"jenetics.prog",
"jenetics.ext"
).map("io.jenetics" % _ % "4.3.0")
val coreDeps = Seq("com.chuusai" %% "shapeless" % "2.3.2",
"org.scala-lang.modules" %% "scala-java8-compat" % "0.9.0") ++
Seq("cats-core", "alleycats-core").map("org.typelevel" %% _ % "1.1.0")
lazy val akkaVersion = "2.5.17"
val apiDeps = Seq("com.typesafe.akka" %% "akka-stream" % akkaVersion,
"co.fs2" %% "fs2-core" % "1.0.0").map(_ % Optional)
val testDeps = Seq("org.scalatest" %% "scalatest" % "3.0.5",
"org.scalacheck" %% "scalacheck" % "1.14.0",
"com.github.alexarchambault" %% "scalacheck-shapeless_1.13" % "1.1.6").map(_ % "test")
libraryDependencies ++= jeneticsDeps ++ coreDeps ++ apiDeps ++ testDeps
//ScalaDoc
enablePlugins(SiteScaladocPlugin, GhpagesPlugin)
siteSubdirName in SiteScaladoc := "latest/api"
scalacOptions in (Compile,doc) ++= Seq("-groups") ++ Opts.doc.title("Helisa")
scmInfo := Some(ScmInfo(url(repoUrl), s"$repoUrl.git"))
git.remoteRepo := scmInfo.value.get.connection
//Sonatype OSS stuff (based on https://github.com/xerial/sbt-sonatype )
publishTo := Some(
if (isSnapshot.value)
Opts.resolver.sonatypeSnapshots
else
Opts.resolver.sonatypeStaging
)
publishMavenStyle := true
licenses := Seq("APL2" -> url("http://www.apache.org/licenses/LICENSE-2.0.txt"))
homepage := Some(url(repoUrl))
scmInfo := Some(
ScmInfo(
url(repoUrl),
"scm:git@github.com:softwaremill/helisa.git"
)
)
developers := List(
Developer(id = "mikolak-net", name = "Mikołaj Koziarkiewicz", email = "", url = url("https://softwaremill.com"))
)