-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.sbt
73 lines (63 loc) · 2.1 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
ThisBuild / tlBaseVersion := "0.1"
ThisBuild / organization := "com.armanbilge"
ThisBuild / organizationName := "Arman Bilge"
ThisBuild / developers += tlGitHubDev("armanbilge", "Arman Bilge")
ThisBuild / startYear := Some(2022)
ThisBuild / tlSonatypeUseLegacyHost := false
ThisBuild / githubWorkflowOSes :=
Seq("ubuntu-22.04", "macos-11", "macos-12")
ThisBuild / githubWorkflowBuildSbtStepPreamble := Seq()
ThisBuild / githubWorkflowBuildPreamble += {
val brew = "/home/linuxbrew/.linuxbrew/bin/brew"
WorkflowStep.Run(
List(s"$brew install curl"),
name = Some("Install curl"),
cond = Some("startsWith(matrix.os, 'ubuntu')")
)
}
val scala2_12 = "2.12.17"
val scala2_13 = "2.13.10"
val scala3 = "3.2.2"
val scalaNativeVersion = "0.4.7"
lazy val root = project
.in(file("."))
.aggregate(core2_12, core2_13, core3, sbtPlugin, ghaPlugin)
.enablePlugins(NoPublishPlugin)
lazy val core = projectMatrix
.in(file("core"))
.settings(
name := "scala-native-config-brew",
libraryDependencies ++= Seq(
"org.scala-native" %% "tools" % scalaNativeVersion,
"io.circe" %% "circe-jawn" % "0.14.3"
)
)
.defaultAxes(VirtualAxis.jvm)
.jvmPlatform(scalaVersions = Seq(scala2_12, scala2_13, scala3))
lazy val core2_12 = core.jvm(scala2_12)
lazy val core2_13 = core.jvm(scala2_13)
lazy val core3 = core.jvm(scala3)
lazy val sbtPlugin = project
.in(file("sbt-plugin"))
.enablePlugins(SbtPlugin)
.dependsOn(core2_12)
.settings(
name := "sbt-scala-native-config-brew",
addSbtPlugin("org.scala-native" % "sbt-scala-native" % scalaNativeVersion),
Test / test := {
scripted.toTask("").value
},
scriptedBufferLog := false,
scriptedLaunchOpts := {
scriptedLaunchOpts.value ++ Seq("-Xmx1024M", "-Dplugin.version=" + version.value)
},
scripted := scripted.dependsOn(core2_12 / publishLocal).evaluated
)
lazy val ghaPlugin = project
.in(file("gha-plugin"))
.enablePlugins(SbtPlugin)
.dependsOn(sbtPlugin)
.settings(
name := "sbt-scala-native-config-brew-github-actions",
addSbtPlugin("org.typelevel" % "sbt-typelevel-github-actions" % "0.4.18")
)