-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.sbt
62 lines (54 loc) · 1.85 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
val Version = new {
val Circe = "0.14.10"
val CirceYaml = "0.15.2"
val Java = "17"
val Scala = "2.12.20"
}
ThisBuild / developers := List(Developer("taig", "Niklas Klein", "mail@taig.io", url("https://taig.io/")))
ThisBuild / dynverVTagPrefix := false
ThisBuild / homepage := Some(url("https://github.com/taig/sbt-blowout/"))
ThisBuild / licenses := List("MIT" -> url("https://raw.githubusercontent.com/taig/sbt-blowout/main/LICENSE"))
ThisBuild / scalafixConfiguration += "OrganizeImports.targetDialect" -> "Scala2"
ThisBuild / scalaVersion := Version.Scala
ThisBuild / versionScheme := Some("early-semver")
noPublishSettings
enablePlugins(BlowoutYamlPlugin)
blowoutGenerators ++= {
val workflows = file(".github") / "workflows"
BlowoutYamlGenerator.lzy(workflows / "main.yml", GitHubActionsGenerator.main(Version.Java)) ::
BlowoutYamlGenerator.lzy(workflows / "pull-request.yml", GitHubActionsGenerator.pullRequest(Version.Java)) ::
BlowoutYamlGenerator.lzy(workflows / "taig.yml", GitHubActionsGenerator.tag(Version.Java)) ::
Nil
}
name := "sbt-blowout"
lazy val core = project
.in(file("modules/core"))
.enablePlugins(SbtPlugin)
.settings(
name := "sbt-blowout-core",
scriptedBufferLog := false,
scriptedLaunchOpts := {
scriptedLaunchOpts.value ++
Seq("-Xmx1024M", "-Dplugin.version=" + version.value)
}
)
lazy val jsonCirce = project
.in(file("modules/json-circe"))
.enablePlugins(SbtPlugin)
.settings(
name := "sbt-blowout-json-circe",
libraryDependencies ++=
"io.circe" %% "circe-core" % Version.Circe ::
Nil
)
.dependsOn(core)
lazy val yamlCirce = project
.in(file("modules/yaml-circe"))
.enablePlugins(SbtPlugin)
.settings(
name := "sbt-blowout-yaml-circe",
libraryDependencies ++=
"io.circe" %% "circe-yaml" % Version.CirceYaml ::
Nil
)
.dependsOn(core)