-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
54 lines (48 loc) · 1.53 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
lazy val V = _root_.scalafix.sbt.BuildInfo
inThisBuild(
List(
organization := "com.github.takayahilton",
licenses := List("Apache-2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0")),
developers := List(
Developer(
"com.github.takayahilton",
"takaya hilton",
"takayahilton@gmail.com",
url("https://github.com/takayahilton/scalafix-remove-unused-default-argument")
)
),
scalaVersion := V.scala212,
crossScalaVersions := List(V.scala212, "2.11.12"),
addCompilerPlugin(scalafixSemanticdb),
scalacOptions ++= List(
"-Yrangepos",
"-Ywarn-unused"
)
)
)
skip in publish := true
lazy val rules = project.settings(
moduleName := "scalafix",
libraryDependencies += "ch.epfl.scala" %% "scalafix-core" % V.scalafixVersion
)
lazy val input = project.settings(
skip in publish := true
)
lazy val output = project.settings(
skip in publish := true
)
lazy val tests = project
.settings(
skip in publish := true,
libraryDependencies += "ch.epfl.scala" % "scalafix-testkit" % V.scalafixVersion % Test cross CrossVersion.full,
compile.in(Compile) :=
compile.in(Compile).dependsOn(compile.in(input, Compile)).value,
scalafixTestkitOutputSourceDirectories :=
sourceDirectories.in(output, Compile).value,
scalafixTestkitInputSourceDirectories :=
sourceDirectories.in(input, Compile).value,
scalafixTestkitInputClasspath :=
fullClasspath.in(input, Compile).value,
)
.dependsOn(rules)
.enablePlugins(ScalafixTestkitPlugin)