This repository has been archived by the owner on Aug 18, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
85 lines (79 loc) · 2.3 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
import ReleaseTransformations._
lazy val V = _root_.scalafix.sbt.BuildInfo
inThisBuild(
List(
scalaVersion := V.scala213,
crossScalaVersions := List(V.scala213, V.scala212),
organization := "io.github.embeddedkafka",
addCompilerPlugin(scalafixSemanticdb),
scalacOptions ++= List(
"-Yrangepos",
"-P:semanticdb:synthetics:on"
)
)
)
publish / skip := true
lazy val rules = project.settings(
moduleName := "scalafix",
homepage := Some(url("https://github.com/embeddedkafka/embedded-kafka-scalafix")),
licenses += ("MIT", url("https://opensource.org/licenses/MIT")),
developers := List(
Developer(
"manub",
"Emanuele Blanco",
"emanuele.blanco@gmail.com",
url("https://twitter.com/manub")
),
Developer(
"francescopellegrini",
"Francesco Pellegrini",
"francesco.pelle@gmail.com",
url("https://github.com/francescopellegrini")
),
Developer(
"NeQuissimus",
"Tim Steinbach",
"steinbach.tim@gmail.com",
url("https://github.com/NeQuissimus")
)
),
Compile / compile := (Compile / compile)
.dependsOn(Compile / scalafmtAll)
.value,
libraryDependencies += "ch.epfl.scala" %% "scalafix-core" % V.scalafixVersion,
releaseProcess := Seq[ReleaseStep](
checkSnapshotDependencies,
inquireVersions,
runClean,
runTest,
setReleaseVersion,
commitReleaseVersion,
tagRelease,
setNextVersion,
commitNextVersion,
pushChanges
),
releaseVersionBump := sbtrelease.Version.Bump.Minor,
releaseCrossBuild := true
)
lazy val input = project.settings(
publish / skip := true
)
lazy val output = project.settings(
publish / skip := true
)
lazy val tests = project
.settings(
publish / skip := 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 :=
unmanagedSourceDirectories.in(output, Compile).value,
scalafixTestkitInputSourceDirectories :=
unmanagedSourceDirectories.in(input, Compile).value,
scalafixTestkitInputClasspath :=
fullClasspath.in(input, Compile).value,
)
.dependsOn(rules)
.enablePlugins(ScalafixTestkitPlugin)