-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
73 lines (69 loc) · 1.89 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
val scala212 = "2.12.17"
val scala213 = "2.13.10"
inThisBuild(
List(
organization := "com.iadvize",
homepage := Some(url("https://github.com/iadvize/xyleme")),
licenses := List("MIT" -> url("https://mit-license.org")),
developers := List(
Developer(
"xela85",
"Alexandre LEBRUN",
url("https://github.com/xela85")
)
),
scalaVersion := scala213,
crossScalaVersions := List(scala212, scala213),
scalafixDependencies += "com.github.vovapolu" %% "scaluzzi" % "0.1.23",
scalafixScalaBinaryVersion := "2.13",
githubWorkflowBuild := Seq(
WorkflowStep.Sbt(
List("ci"),
id = None,
name = Some("Test JVM (with coverage)")
),
WorkflowStep.Sbt(
List("coverageReport"),
id = None,
name = Some("Coverage")
),
WorkflowStep.Use(
UseRef.Public(
"codecov",
"codecov-action",
"v2"
),
params = Map(
"flags" -> List("${{matrix.scala}}", "${{matrix.java}}").mkString(","),
"token" -> "${{ secrets.CODECOV_TOKEN }}"
)
)
),
githubWorkflowTargetTags ++= Seq("v*"),
githubWorkflowPublishTargetBranches := Seq(RefPredicate.StartsWith(Ref.Tag("v"))),
githubWorkflowPublish := Seq(WorkflowStep.Sbt(List("ci-release")))
)
)
lazy val core = (project in file("modules/core")).settings(
name := "xyleme",
libraryDependencies ++= List(
Dependencies.scalaXml,
Dependencies.catsCore,
Dependencies.scalaTest % Test
),
Test / scalacOptions -= "-Wnonunit-statement"
)
def addCommandsAlias(name: String, values: List[String]) =
addCommandAlias(name, values.mkString(";", ";", ""))
addCommandsAlias(
"ci",
List(
"scalafmtCheckAll",
"scalafmtSbtCheck",
"scalafixEnable",
"scalafix --check",
"coverageOn",
"test"
)
)