-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
49 lines (44 loc) · 1.41 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
lazy val V = _root_.scalafix.sbt.BuildInfo
inThisBuild(
List(
scalaVersion := V.scala213,
crossScalaVersions := List(V.scala213),
addCompilerPlugin(scalafixSemanticdb),
scalacOptions += "-Yrangepos",
organization := "com.iterable",
homepage := Some(url("https://github.com/iterable/scalafix-rules")),
licenses := List(
"Apache-2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0")
),
developers := List(
Developer(
"gmethvin",
"Greg Methvin",
new URL("https://github.com/gmethvin")
)
)
)
)
publish / skip := true
lazy val rules = project.settings(
moduleName := "scalafix-rules",
libraryDependencies += "ch.epfl.scala" %% "scalafix-core" % V.scalafixVersion
)
lazy val input = project
.settings(publish / skip := true)
lazy val output = project
.settings(publish / skip := true)
lazy val tests = project
.settings(
libraryDependencies += "ch.epfl.scala" % "scalafix-testkit" % V.scalafixVersion % Test cross CrossVersion.full,
scalafixTestkitOutputSourceDirectories :=
(output / Compile / sourceDirectories).value,
scalafixTestkitInputSourceDirectories :=
(input / Compile / sourceDirectories).value,
scalafixTestkitInputClasspath :=
(input / Compile / fullClasspath).value
)
.settings(publish / skip := true)
.dependsOn(input, rules)
.enablePlugins(ScalafixTestkitPlugin)