-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.sbt
81 lines (70 loc) · 2.4 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
import org.typelevel.sbt.gha.WorkflowStep.Sbt
import org.typelevel.sbt.TypelevelCiReleasePlugin
ThisBuild / tlBaseVersion := "0.1"
ThisBuild / organization := "dev.hnaderi"
ThisBuild / organizationName := "Hossein Naderi"
ThisBuild / startYear := Some(2022)
ThisBuild / licenses := Seq(License.Apache2)
ThisBuild / developers := List(
tlGitHubDev("hnaderi", "Hossein Naderi")
)
val scala212 = "2.12.20"
ThisBuild / tlSonatypeUseLegacyHost := false
ThisBuild / tlSitePublishBranch := Some("main")
ThisBuild / scalaVersion := scala212
ThisBuild / githubWorkflowBuildSbtStepPreamble := Nil
// This job is used as a sign that all build jobs have been successful and is used by mergify
ThisBuild / githubWorkflowAddedJobs += WorkflowJob(
id = "post-build",
name = "post build",
needs = List("build"),
steps = List(
WorkflowStep.Run(
commands = List("echo success!"),
name = Some("post build")
)
),
scalas = Nil,
javas = Nil
)
ThisBuild / resolvers ++= Seq(
"Sonatype OSS Snapshots" at "https://s01.oss.sonatype.org/content/repositories/snapshots",
"Sonatype OSS" at "https://s01.oss.sonatype.org/content/repositories/releases"
)
lazy val root =
project
.in(file("."))
.aggregate(core, manifest, cookbook, docs)
.enablePlugins(AutomateHeaderPlugin, NoPublishPlugin)
val scalaK8sVersion = "0.20.2"
val munitVersion = "1.0.0"
lazy val manifest = project
.enablePlugins(AutomateHeaderPlugin, SbtPlugin)
.settings(
name := "sbt-k8s-manifests",
pluginCrossBuild / sbtVersion := "1.2.8", // set minimum sbt version
libraryDependencies += "dev.hnaderi" %% "scala-k8s-manifests" % scalaK8sVersion
)
lazy val cookbook = project
.enablePlugins(AutomateHeaderPlugin, SbtPlugin)
.settings(
name := "sbt-k8s-cookbook",
pluginCrossBuild / sbtVersion := "1.2.8", // set minimum sbt version
libraryDependencies ++= Seq(
"org.scalameta" %% "munit" % munitVersion % Test,
"org.scalameta" %% "munit-scalacheck" % munitVersion % Test,
"dev.hnaderi" %% "scala-k8s-scalacheck" % scalaK8sVersion % Test
)
)
.dependsOn(manifest)
lazy val core = project
.enablePlugins(AutomateHeaderPlugin, SbtPlugin)
.settings(
name := "sbt-k8s",
pluginCrossBuild / sbtVersion := "1.2.8", // set minimum sbt version
mimaReportBinaryIssues := {}
)
.dependsOn(manifest, cookbook)
lazy val docs = project
.in(file("site"))
.enablePlugins(WebsitePlugin)