-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
73 lines (67 loc) · 2.05 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
//Dependency versions
val akkaV = "2.6.19"
val munitV = "0.7.29"
val scala212 = "2.12.13"
val scala213 = "2.13.6"
val scala3 = "3.1.1"
val scalaVersions = Seq(scala212, scala213, scala3)
//Dependency Definitions
val akkaActorTestKitTyped = "com.typesafe.akka" %% "akka-actor-testkit-typed" % akkaV
val akkaPersistenceTestkit = "com.typesafe.akka" %% "akka-persistence-testkit" % akkaV
val munit = "org.scalameta" %% "munit" % munitV
inThisBuild(
List(
organization := "dev.rpeters",
developers := List(
Developer(
"sloshy",
"Ryan Peters",
url("https://github.com/sloshy")
)
),
homepage := Some(url("https://github.com/sloshy/munit-akka")),
licenses := List(
"Apache-2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0")
),
githubWorkflowJavaVersions := Seq(JavaSpec.temurin("11")),
githubWorkflowTargetTags ++= Seq("v*"),
githubWorkflowPublishTargetBranches := Seq(
RefPredicate.StartsWith(Ref.Tag("v"))
),
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 }}"
)
)
),
scalaVersion := scala213,
crossScalaVersions := Seq(scala3, scala213, scala212)
)
)
lazy val root = (project in file("."))
.settings(
publish / skip := true
)
.aggregate(munitAkkaTyped, munitAkkaTypedPersistence)
lazy val munitAkkaTyped = (project in file("typed"))
.settings(
name := "munit-akka-typed",
libraryDependencies ++= List(
munit,
akkaActorTestKitTyped
)
)
lazy val munitAkkaTypedPersistence = (project in file("typed-persistence"))
.settings(
name := "munit-akka-typed-persistence",
libraryDependencies ++= List(
akkaPersistenceTestkit
)
)
.dependsOn(munitAkkaTyped % "compile->compile;test->test")