This repository has been archived by the owner on Jul 29, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.sbt
127 lines (117 loc) · 3.91 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
import org.typelevel.sbt.gha.WorkflowStep._
val azureCosmosV = "4.54.0"
val catsV = "2.10.0"
val catsEffectV = "3.5.3"
val circeJackson210V = "0.14.0"
val fs2V = "3.9.3"
val circeV = "0.14.6"
val munitV = "0.7.29"
val munitCatsEffectV = "1.0.7"
val nettyV = "4.1.104.Final"
val reactorNettyV = "1.1.15"
val kindProjectorV = "0.13.2"
ThisBuild / tlBaseVersion := "1.0"
ThisBuild / organization := "com.banno"
ThisBuild / organizationName := "Jack Henry & Associates, Inc.®"
ThisBuild / startYear := Some(2020)
ThisBuild / licenses := Seq(License.Apache2)
ThisBuild / developers := List(
Developer(
"ChristopherDavenport",
"Christopher Davenport",
url("https://github.com/ChristopherDavenport")
),
Developer(
"JesusMtnez",
"Jesús Martínez",
url("https://github.com/JesusMtnez")
),
Developer(
"BeniVF",
"Benigno Villa Fernández",
url("https://github.com/BeniVF")
),
Developer(
"Ryan-Banno",
"Ryan D",
url("https://github.com/Ryan-Banno")
)
)
ThisBuild / tlSonatypeUseLegacyHost := true //https://oss.sonatype.org/ currently
val scala3 = "3.3.1"
ThisBuild / crossScalaVersions := Seq(scala3, "2.13.12")
ThisBuild / scalaVersion := scala3
ThisBuild / githubWorkflowJavaVersions := List(JavaSpec.temurin("11"), JavaSpec.temurin("17"))
lazy val `cosmos4s` = project
.in(file("."))
.enablePlugins(NoPublishPlugin)
.settings(commonSettings)
.aggregate(core)
lazy val core = project
.in(file("core"))
.settings(commonSettings)
.settings(
name := "cosmos4s"
)
// General Settings
lazy val commonSettings = Seq(
libraryDependencies ++= Seq(
"com.azure" % "azure-cosmos" % azureCosmosV,
"org.typelevel" %% "cats-core" % catsV,
"org.typelevel" %% "cats-effect" % catsEffectV,
"co.fs2" %% "fs2-core" % fs2V,
"io.circe" %% "circe-core" % circeV,
"io.circe" %% "circe-parser" % circeV,
"io.circe" %% "circe-jackson210" % circeJackson210V,
"io.netty" % "netty-codec-http2" % nettyV % Runtime, // GHSA-xpw8-rcwv-8f8p
"io.projectreactor.netty" % "reactor-netty-http" % reactorNettyV % Runtime, // GHSA-xjhv-p3fv-x24r
"org.scalameta" %% "munit" % munitV % Test,
"org.typelevel" %% "munit-cats-effect-3" % munitCatsEffectV % Test
) ++
// format: off
(if (scalaVersion.value.startsWith("2"))
Seq(compilerPlugin(("org.typelevel" %% "kind-projector" % kindProjectorV).cross(CrossVersion.full)))
else Seq()),
)
Compile / scalacOptions ++= Seq(
"-groups",
"-sourcepath",
(LocalRootProject / baseDirectory).value.getAbsolutePath
)
import laika.helium.config._
import laika.ast.Image
ThisBuild / tlSitePublishBranch := Some("main")
lazy val docs = project.in(file("site")).enablePlugins(TypelevelSitePlugin)
lazy val unidocs = project
.in(file("unidocs"))
.enablePlugins(TypelevelUnidocPlugin) // also enables the ScalaUnidocPlugin
.settings(
name := "cosmos4s-docs",
ScalaUnidoc / unidoc / unidocProjectFilter := inProjects(core)
)
inThisBuild(
List(
// This is nasty and can go away after
// https://github.com/typelevel/sbt-typelevel/issues/442
tlCiDependencyGraphJob := false,
githubWorkflowAddedJobs += WorkflowJob(
"dependency-submission",
"Submit Dependencies",
scalas = List(scalaVersion.value),
javas = List(githubWorkflowJavaVersions.value.head),
steps = githubWorkflowJobSetup.value.toList :+
Use(
UseRef.Public("scalacenter", "sbt-dependency-submission", "v2"),
name = Some("Submit Dependencies"),
params = Map(
"modules-ignore" -> "docs_2.12 docs_2.13 docs_3",
"configs-ignore" -> "scala-doc-tool scala-tool test"
)
)
).copy(cond = Some("github.event_name != 'pull_request'"))
)
)