-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
64 lines (56 loc) · 2.1 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
import xerial.sbt.Sonatype._
lazy val V = _root_.scalafix.sbt.BuildInfo
inThisBuild(
List(
organization := "org.endpoints4s",
homepage := Some(url("https://github.com/endpoints4s")),
licenses := List("Apache-2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0")),
developers := List(
Developer(
"julienrf",
"Julien Richard-Foy",
url("http://julien.richard-foy.fr")
)
),
scalaVersion := V.scala212,
addCompilerPlugin(scalafixSemanticdb),
scalacOptions ++= List(
"-Yrangepos",
"-P:semanticdb:synthetics:on"
)
)
)
skip in publish := true
lazy val `to-1_0_0-rules` = project.in(file("to-1.0.0/rules")).settings(
name := "to-1.0.0",
libraryDependencies += "ch.epfl.scala" %% "scalafix-core" % V.scalafixVersion,
publishTo := sonatypePublishTo.value,
sonatypeProjectHosting := Some(GitHubHosting("endpoints4s", "endpoints4s", "[email protected]"))
)
lazy val `to-1_0_0-input` = project.in(file("to-1.0.0/input")).settings(
skip in publish := true,
libraryDependencies += "org.julienrf" %% "endpoints-algebra" % "0.15.0",
sbtPlugin := true
)
lazy val `to-1_0_0-output` = project.in(file("to-1.0.0/output")).settings(
skip in publish := true,
libraryDependencies += "org.endpoints4s" %% "algebra" % "1.0.0",
sbtPlugin := true
)
lazy val `to-1_0_0-tests` = project.in(file("to-1.0.0/tests"))
.settings(
skip in publish := true,
libraryDependencies += "ch.epfl.scala" % "scalafix-testkit" % V.scalafixVersion % Test cross CrossVersion.full,
(Compile / compile) :=
(Compile / compile).dependsOn(`to-1_0_0-input` / Compile / compile).value,
scalafixTestkitOutputSourceDirectories :=
(`to-1_0_0-output` / Compile / sourceDirectories).value,
scalafixTestkitInputSourceDirectories :=
(`to-1_0_0-input` / Compile / sourceDirectories).value,
scalafixTestkitInputClasspath :=
(`to-1_0_0-input` / Compile / fullClasspath).value,
)
.dependsOn(`to-1_0_0-rules`)
.enablePlugins(ScalafixTestkitPlugin)
Global / onChangedBuildSource := ReloadOnSourceChanges