forked from http4s/sbt-http4s-org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
54 lines (51 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
enablePlugins(SonatypeCiReleasePlugin)
// Projects
lazy val `sbt-http4s-org` = project
.in(file("."))
.enablePlugins(NoPublishPlugin)
.aggregate(core)
lazy val core = project
.in(file("core"))
.enablePlugins(SbtPlugin)
.settings(
name := "sbt-http4s-org",
addSbtPlugin("com.codecommit" % "sbt-spiewak-sonatype" % "0.23.0"),
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.4.6")
)
// General Settings
inThisBuild(
List(
organization := "org.http4s",
organizationName := "http4s.org",
publishGithubUser := "rossabaker",
publishFullName := "Ross A. Baker",
baseVersion := "0.7",
crossScalaVersions := Seq("2.12.15"),
developers := List(
Developer(
"rossabaker",
"Ross A. Baker",
"ross@rossabaker.com",
url("https://github.com/rossabaker"))
),
homepage := Some(url("https://github.com/http4s/sbt-http4s-org")),
scmInfo := Some(
ScmInfo(
url("https://github.com/http4s/sbt-http4s-org.git"),
"git@github.com:http4s/sbt-http4s-org.git")),
startYear := Some(2020),
licenses := Seq("Apache-2.0" -> url("https://www.apache.org/licenses/LICENSE-2.0.html")),
githubWorkflowTargetTags ++= Seq("v*"),
githubWorkflowBuild := Seq(
WorkflowStep
.Sbt(List("scalafmtCheckAll", "scalafmtSbtCheck"), name = Some("Check formatting")),
WorkflowStep
.Sbt(List("headerCheckAll"), name = Some("Check headers")),
WorkflowStep.Sbt(List("test:compile"), name = Some("Compile")),
WorkflowStep.Sbt(List("test"), name = Some("Run tests")),
WorkflowStep.Sbt(List("doc"), name = Some("Build docs"))
),
githubWorkflowJavaVersions := Seq(JavaSpec.temurin("8")),
githubWorkflowEnv += ("JABBA_INDEX" -> "https://github.com/typelevel/jdk-index/raw/main/index.json"),
spiewakMainBranches := Seq("main")
))