-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.sbt
67 lines (62 loc) · 2.05 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
65
66
67
lazy val V = _root_.scalafix.sbt.BuildInfo
inThisBuild(
List(
version := "0.0.3",
organization := "com.github.xplosunn",
homepage := Some(url("https://github.com/xplosunn/ForceOverrides")),
licenses := List("Apache-2.0" -> url("https://www.apache.org/licenses/LICENSE-2.0")),
scalaVersion := V.scala212,
crossScalaVersions := List(V.scala212, V.scala213),
addCompilerPlugin(scalafixSemanticdb),
scalacOptions ++= List(
"-Yrangepos",
"-P:semanticdb:synthetics:on",
"-deprecation"
),
publish / skip := true,
scmInfo := Some(
ScmInfo(
url("https://github.com/xplosunn/ForceOverrides"),
"scm:[email protected]:xplosunn/ForceOverrides.git"
)
),
pomIncludeRepository := { _ => false },
publishTo := Some("releases" at "https://oss.sonatype.org/service/local/staging/deploy/maven2"),
publishMavenStyle := true,
credentials += Credentials(Path.userHome / ".sbt" / "sonatype_credentials"),
developers := List(
Developer(
"xplosunn",
"Hugo Sousa",
url("https://github.com/xplosunn")
)
),
)
)
lazy val rules = project.settings(
moduleName := "ForceOverrides",
libraryDependencies += "ch.epfl.scala" %% "scalafix-core" % V.scalafixVersion,
publish / skip := false,
)
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)