-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathbuild.sbt
50 lines (42 loc) · 1.52 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
ThisBuild / name := "sangria-akka-http"
ThisBuild / organization := "org.sangria-graphql"
ThisBuild / description := "Sangria Akka HTTP Support"
ThisBuild / homepage := Some(url("https://sangria-graphql.github.io/"))
ThisBuild / licenses := Seq(
"Apache License, ASL Version 2.0" -> url("https://www.apache.org/licenses/LICENSE-2.0"))
ThisBuild / developers := List(
Developer(
"nickhudkins",
"Nick Hudkins",
url("https://nickhudkins.com/")
)
// TODO: Add Anže in here!
)
ThisBuild / crossScalaVersions := Seq("2.12.18", "2.13.11")
ThisBuild / scalaVersion := crossScalaVersions.value.last
ThisBuild / githubWorkflowPublishTargetBranches += RefPredicate.StartsWith(Ref.Tag("v"))
ThisBuild / githubWorkflowBuildPreamble ++= List(
WorkflowStep.Sbt(List("scalafmtCheckAll"), name = Some("Check formatting"))
)
ThisBuild / githubWorkflowTargetTags ++= Seq("v*")
ThisBuild / githubWorkflowPublish := Seq(
WorkflowStep.Sbt(
List("ci-release"),
env = Map(
"PGP_PASSPHRASE" -> "${{ secrets.PGP_PASSPHRASE }}",
"PGP_SECRET" -> "${{ secrets.PGP_SECRET }}",
"SONATYPE_PASSWORD" -> "${{ secrets.SONATYPE_PASSWORD }}",
"SONATYPE_USERNAME" -> "${{ secrets.SONATYPE_USERNAME }}"
)
)
)
lazy val core = project in file("core")
lazy val circe = (project in file("circe"))
.dependsOn(core % "test->test;compile->compile")
lazy val root = (project in file("."))
.aggregate(core, circe)
.settings(
name := "sangria-akka-http",
publishArtifact := false
)