-
Notifications
You must be signed in to change notification settings - Fork 9
/
build.sbt
59 lines (54 loc) · 2.19 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
ThisBuild / scalaVersion := "2.12.20"
ThisBuild / organization := "io.higherkindness"
ThisBuild / githubOrganization := "47deg"
publish / skip := true
addCommandAlias("ci-test", "scalafmtCheckAll; scalafmtSbtCheck; test; publishLocal; scripted")
addCommandAlias("ci-docs", "github; mdoc; headerCreateAll")
addCommandAlias("ci-publish", "github; ci-release")
lazy val core = project
.enablePlugins(BuildInfoPlugin)
.settings(moduleName := "mu-srcgen-core")
.settings(
libraryDependencies ++= Seq(
"org.typelevel" %% "cats-core" % "2.12.0",
"com.julianpeeters" %% "avrohugger-core" % "2.9.0",
"com.thesamet.scalapb" %% "compilerplugin" % "0.11.17",
"com.thesamet.scalapb" %% "scalapb-validate-codegen" % "0.3.6",
"org.scalameta" %% "scalameta" % "4.12.2",
"ch.epfl.scala" %% "scalafix-core" % "0.13.0",
"ch.epfl.scala" %% "scalafix-cli" % "0.13.0" cross CrossVersion.full,
"ch.epfl.scala" % "scalafix-interfaces" % "0.13.0",
"org.scalatest" %% "scalatest" % "3.2.19" % Test,
"org.scalacheck" %% "scalacheck" % "1.18.1" % Test,
"org.scalatestplus" %% "scalacheck-1-16" % "3.2.14.0" % Test,
"org.slf4j" % "slf4j-nop" % "2.0.16" % Test,
"org.scalameta" %% "contrib" % "4.1.6" % Test
),
buildInfoPackage := "higherkindness.mu.rpc.srcgen",
buildInfoKeys := Seq[BuildInfoKey](
organization,
moduleName,
version,
scalaVersion,
scalaBinaryVersion,
sbtVersion
)
)
val muV = "0.33.0"
lazy val plugin = project
.dependsOn(core)
.settings(moduleName := "sbt-mu-srcgen")
.enablePlugins(SbtPlugin)
.settings(
addSbtPlugin("com.thesamet" % "sbt-protoc" % "1.0.7"),
scriptedLaunchOpts ++= Seq(
"-Xmx2048M",
"-XX:ReservedCodeCacheSize=256m",
"-Dmu=" + muV,
"-Dversion=" + version.value
)
)
lazy val documentation = project
.settings(mdocOut := file("."))
.settings(publish / skip := true)
.enablePlugins(MdocPlugin)