This repository has been archived by the owner on Dec 26, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathbuild.sbt
52 lines (45 loc) · 1.89 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
ThisBuild / scalaVersion := "2.12.12"
ThisBuild / organization := "com.propensive"
ThisBuild / organizationName := "Propensive OÜ"
ThisBuild / organizationHomepage := Some(url("https://propensive.com/"))
ThisBuild / version := "0.6.0"
ThisBuild / scmInfo := Some(
ScmInfo(
url("https://github.com/propensive/mercator"),
"scm:[email protected]:propensive/mercator.git"
)
)
ThisBuild / developers := List(
Developer(
id = "propensive",
name = "Jon Pretty",
email = "[email protected]",
url = url("https://twitter.com/propensive")
)
)
ThisBuild / description := "Automatic creation of typeclass evidence for monad-like types"
ThisBuild / licenses := List("Apache 2" -> new URL("http://www.apache.org/licenses/LICENSE-2.0.txt"))
ThisBuild / homepage := Some(url("https://github.com/propensive/mercator"))
ThisBuild / pomIncludeRepository := { _ => false }
ThisBuild / 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")
}
ThisBuild / publishMavenStyle := true
lazy val core = (project in file(".sbt/core"))
.settings(
name := "mercator-core",
Compile / scalaSource := baseDirectory.value / ".." / ".." / "src" / "core",
libraryDependencies += "org.scala-lang" % "scala-reflect" % scalaVersion.value % Provided,
libraryDependencies += "org.scala-lang" % "scala-compiler" % scalaVersion.value % Provided
)
lazy val test = (project in file(".sbt/test"))
.dependsOn(core)
.settings(
name := "mercator-test",
scalacOptions ++= Seq("-Xexperimental", "-Xfuture"),
Compile / scalaSource := baseDirectory.value / ".." / ".." / "src" / "test",
libraryDependencies += "com.propensive" %% "probably-cli" % "0.5.0",
libraryDependencies += "com.propensive" %% "contextual-examples" % "2.0.0"
)