-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.sbt
81 lines (76 loc) · 2.49 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
lazy val V = _root_.scalafix.sbt.BuildInfo
inThisBuild(
List(
version := "0.0.8",
organization := "com.github.xplosunn",
homepage := Some(url("https://github.com/xplosunn/JsonMacroFormatter")),
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/JsonMacroFormatter"),
"scm:git@github.com:xplosunn/JsonMacroFormatter.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",
"gi.ciberon@gmail.com",
url("https://github.com/xplosunn")
)
),
)
)
lazy val rules = project.settings(
moduleName := "JsonMacroFormatter",
publish / skip := false,
libraryDependencies ++= Seq(
"ch.epfl.scala" %% "scalafix-core" % V.scalafixVersion,
"io.circe" %% "circe-core" % "0.13.0",
"io.circe" %% "circe-parser" % "0.13.0",
),
)
lazy val input = project.settings(
publish/skip := true,
libraryDependencies ++= Seq(
"io.circe" %% "circe-core" % "0.14.7",
"io.circe" %% "circe-literal" % "0.14.7",
"org.typelevel" %% "jawn-parser" % "1.5.1",
)
)
lazy val output = project.settings(
publish/skip := true,
libraryDependencies ++= Seq(
"io.circe" %% "circe-core" % "0.14.7",
"io.circe" %% "circe-literal" % "0.14.7",
"org.typelevel" %% "jawn-parser" % "1.5.1",
)
)
lazy val tests = project
.settings(
publish/skip := true,
libraryDependencies += "ch.epfl.scala" % "scalafix-testkit" % V.scalafixVersion % Test cross CrossVersion.full,
(Compile / compile) :=
(Compile/compile).dependsOn(input / Compile / compile).value,
scalafixTestkitOutputSourceDirectories :=
(output/ Compile / sourceDirectories).value,
scalafixTestkitInputSourceDirectories :=
(input / Compile /sourceDirectories).value,
scalafixTestkitInputClasspath :=
(input / Compile/ fullClasspath).value
)
.dependsOn(rules)
.enablePlugins(ScalafixTestkitPlugin)