-
Notifications
You must be signed in to change notification settings - Fork 15
/
build.sbt
62 lines (56 loc) · 1.84 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
lazy val V = _root_.scalafix.sbt.BuildInfo
inThisBuild(
List(
organization := "com.nequissimus",
homepage := Some(url("https://github.com/com/example")),
licenses := List("Apache-2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0")),
developers := List(
Developer(
"NeQuissimus",
"Tim Steinbach",
url("https://nequissimus.com")
)
),
scalaVersion := V.scala212,
crossScalaVersions := List(V.scala211, V.scala212, V.scala213),
addCompilerPlugin(scalafixSemanticdb),
scalacOptions ++= List(
"-Yrangepos",
"-P:semanticdb:synthetics:on",
"-deprecation"
)
)
)
skip in publish := true
lazy val rules = project.settings(
moduleName := "sort-imports",
libraryDependencies += "ch.epfl.scala" %% "scalafix-core" % V.scalafixVersion,
pgpPublicRing := file("/tmp/public.asc"),
pgpSecretRing := file("/tmp/secret.asc"),
releaseEarlyWith := SonatypePublisher,
scmInfo := Some(
ScmInfo(url("https://github.com/NeQuissimus/sort-imports/"), "scm:git:[email protected]:NeQuissimus/sort-imports.git")
)
)
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)