-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathbuild.sbt
52 lines (47 loc) · 1.57 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 / organization := "com.github.dwickern"
lazy val scala3 = "3.3.5"
lazy val scala213 = "2.13.16"
lazy val scala212 = "2.12.20"
lazy val root = project.in(file("."))
.aggregate(nameof.projectRefs: _*)
.enablePlugins(MdocPlugin)
.settings(
// for IntelliJ import: pick one project from the matrix to use
nameof.jvm(scala3).settings,
target := baseDirectory.value / "target",
ideSkipProject := false,
publish / skip := true,
mdocIn := baseDirectory.value / "README.md",
)
lazy val nameof = (projectMatrix in file("."))
.settings(
name := "scala-nameof",
ideSkipProject := true,
libraryDependencies ++= Seq(
"org.scalatest" %% "scalatest" % "3.2.19" % Test,
"javax.annotation" % "javax.annotation-api" % "1.3.2" % Test,
),
)
.jvmPlatform(scalaVersions = Seq(scala3), Seq(
libraryDependencies ++= Seq(
"org.typelevel" %% "shapeless3-test" % "3.4.3" % Test,
)
))
.jvmPlatform(scalaVersions = Seq(scala213, scala212), Seq(
libraryDependencies ++= Seq(
"org.scala-lang" % "scala-reflect" % scalaVersion.value % Provided,
"org.scala-lang" % "scala-compiler" % scalaVersion.value % Provided,
"com.chuusai" %% "shapeless" % "2.3.12" % Test,
),
))
Global / excludeLintKeys += ideSkipProject
ThisBuild / homepage := Some(url("https://github.com/dwickern/scala-nameof"))
ThisBuild / licenses := Seq(License.MIT)
ThisBuild / developers := List(
Developer(
id = "dwickern",
name = "Derek Wickern",
email = "[email protected]",
url = url("https://github.com/dwickern")
)
)