-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
73 lines (64 loc) · 2.14 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 / organization := "me.romac"
ThisBuild / homepage := Some(url("https://github.com/romac/choreo"))
ThisBuild / licenses := Seq(
"BSD-3-Clause" -> url("https://opensource.org/licenses/BSD-3-Clause")
)
ThisBuild / version := Versions.choreo
ThisBuild / scalaVersion := Versions.scala3
ThisBuild / scalacOptions ++= Seq("-source", "3.3")
lazy val root = project
.in(file("."))
.aggregate(core, examples)
lazy val core = project
.in(file("core"))
.settings(
name := "choreo",
libraryDependencies ++= Seq(
"org.typelevel" %% "cats-core" % Versions.cats,
"org.typelevel" %% "cats-free" % Versions.cats,
"org.typelevel" %% "cats-effect" % Versions.catsEffect,
"org.scalameta" %% "munit" % Versions.munit % Test
)
)
lazy val examples = project
.in(file("examples"))
.settings(
name := "choreo-examples",
libraryDependencies ++= Seq(
"org.typelevel" %% "cats-core" % Versions.cats,
"org.typelevel" %% "cats-effect" % Versions.catsEffect
)
)
.dependsOn(core)
val PrimaryJava = JavaSpec.temurin("8")
val LTSJava = JavaSpec.temurin("17")
val GraalVM = JavaSpec.graalvm(Graalvm.Distribution("graalvm-community"), "17")
ThisBuild / githubWorkflowJavaVersions := Seq(PrimaryJava, LTSJava, GraalVM)
ThisBuild / githubWorkflowTargetTags ++= Seq("v*")
ThisBuild / githubWorkflowPublishTargetBranches :=
Seq(RefPredicate.StartsWith(Ref.Tag("v")))
// ThisBuild / githubWorkflowPublish := Seq(
// WorkflowStep.Sbt(
// commands = List("ci-release"),
// name = Some("Publish project")
// )
// )
//
// ThisBuild / githubWorkflowPublishTargetBranches :=
// Seq(
// RefPredicate.StartsWith(Ref.Tag("v")),
// RefPredicate.Equals(Ref.Branch("main"))
// )
//
// ThisBuild / githubWorkflowPublish := Seq(
// WorkflowStep.Sbt(
// commands = List("ci-release"),
// name = Some("Publish project"),
// env = Map(
// "PGP_PASSPHRASE" -> "${{ secrets.PGP_PASSPHRASE }}",
// "PGP_SECRET" -> "${{ secrets.PGP_SECRET }}",
// "SONATYPE_PASSWORD" -> "${{ secrets.SONATYPE_PASSWORD }}",
// "SONATYPE_USERNAME" -> "${{ secrets.SONATYPE_USERNAME }}"
// )
// )
// )