This repository has been archived by the owner on Nov 23, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
50 lines (46 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
Global / onChangedBuildSource := ReloadOnSourceChanges
ThisBuild / githubOwner := "MakeNowJust-Labo"
ThisBuild / githubRepository := "tatami"
ThisBuild / scalaVersion := "2.13.3"
ThisBuild / scalacOptions ++= Seq(
"-encoding",
"UTF-8",
"-feature",
"-deprecation",
"-Wunused"
)
// Scalafix config:
ThisBuild / scalafixScalaBinaryVersion := "2.13"
ThisBuild / semanticdbEnabled := true
ThisBuild / semanticdbVersion := scalafixSemanticdb.revision
ThisBuild / scalafixDependencies += "com.github.liancheng" %% "organize-imports" % "0.4.4"
ThisBuild / scalafixDependencies += "com.github.vovapolu" %% "scaluzzi" % "0.1.16"
lazy val root = project
.in(file("."))
.settings(
organization := "codes.quine.labo",
name := "tatami",
version := "0.1.0-SNAPSHOT",
console / initialCommands := """
|import cats._
|import cats.arrow._
|import cats.implicits._
|
|import codes.quine.labo.tatami._
""".stripMargin,
Compile / console / scalacOptions -= "-Wunused",
Test / console / scalacOptions -= "-Wunused",
// Set URL mapping of scala standard API for Scaladoc.
apiMappings ++= scalaInstance.value.libraryJars
.filter(file => file.getName.startsWith("scala-library") && file.getName.endsWith(".jar"))
.map(_ -> url(s"http://www.scala-lang.org/api/${scalaVersion.value}/"))
.toMap,
// Dependencies:
addCompilerPlugin("org.typelevel" %% "kind-projector" % "0.11.1" cross CrossVersion.full),
addCompilerPlugin("com.olegpy" %% "better-monadic-for" % "0.3.1"),
libraryDependencies += "org.typelevel" %% "cats-core" % "2.2.0",
// Settings for test:
libraryDependencies += "io.monix" %% "minitest" % "2.9.0" % Test,
libraryDependencies += "codes.quine.labo" %% "hariko-minitest" % "0.1.0" % Test,
testFrameworks += new TestFramework("minitest.runner.Framework")
)