This repository has been archived by the owner on Jul 20, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.sbt
65 lines (57 loc) · 2.15 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
import sbtcrossproject.crossProject
Global / onChangedBuildSource := ReloadOnSourceChanges
licenses += ("Apache-2.0", url("http://www.apache.org/licenses/LICENSE-2.0"))
lazy val scalaVersions = List("2.13.5", "2.12.13")
lazy val noPublishSettings = Seq(
publish := {},
publishLocal := {},
gitRelease := {}
)
lazy val commonSettings = Seq(
organization := "com.mrdziuban",
version := "0.5.0",
crossScalaVersions := scalaVersions,
scalaVersion := crossScalaVersions.value.head,
skip in publish := true,
homepage := Some(url("https://github.com/mrdziuban/scalacheck-magnolia")),
scmInfo := Some(ScmInfo(url("https://github.com/mrdziuban/scalacheck-magnolia"), "git@github.com:mrdziuban/scalacheck-magnolia.git")),
developers := List(Developer("mrdziuban", "Matt Dziuban", "mrdziuban@gmail.com", url("https://github.com/mrdziuban"))),
licenses += ("Apache-2.0", url("http://www.apache.org/licenses/LICENSE-2.0")),
gitPublishDir := file(s"${sys.env("HOME")}/maven-repo")
)
lazy val root = project.in(file("."))
.settings(commonSettings)
.settings(noPublishSettings)
.aggregate(scalacheckMagnolia.jvm, scalacheckMagnolia.js)
lazy val scalacheckVersion = "1.15.4"
lazy val magnoliaVersion = "0.17.0"
lazy val scalacheckMagnolia = crossProject(JVMPlatform, JSPlatform)
.in(file("."))
.settings(commonSettings)
.settings(
name := "scalacheck-magnolia",
libraryDependencies ++= Seq(
"org.scalacheck" %%% "scalacheck" % scalacheckVersion,
"com.propensive" %%% "magnolia" % magnoliaVersion,
"org.scala-lang" % "scala-reflect" % scalaVersion.value
),
skip in publish := false
)
lazy val tut = project
.in(file("tut"))
.settings(commonSettings)
.settings(noPublishSettings)
.settings(
mdocIn := baseDirectory.value / ".." / "docs",
mdocOut := baseDirectory.value / "..",
mdocVariables := Map(
"VERSION" -> (scalacheckMagnolia.jvm / version).value,
"SCALACHECK_VERSION" -> scalacheckVersion,
"MAGNOLIA_VERSION" -> magnoliaVersion
),
mdocExtraArguments += "--no-link-hygiene",
publish := {},
publishLocal := {}
)
.dependsOn(scalacheckMagnolia.jvm)
.enablePlugins(MdocPlugin)