Skip to content

Commit f446309

Browse files
committed
use scala 3
1 parent d60c69c commit f446309

File tree

2 files changed

+9
-10
lines changed

2 files changed

+9
-10
lines changed

.github/workflows/build.yml

+1-3
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
build:
1111
strategy:
1212
matrix:
13-
scalaVersion: ["2.13.12"]
13+
scalaVersion: ["2.13.12", "3.3.1"]
1414
runs-on: ubuntu-20.04
1515

1616
steps:
@@ -71,8 +71,6 @@ jobs:
7171
strategy:
7272
matrix:
7373
os: [ubuntu-20.04]
74-
scala: [2.13.12]
75-
7674
runs-on: ${{ matrix.os }}
7775
steps:
7876
- uses: actions/checkout@v2

build.sbt

+8-7
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ Global / onChangedBuildSource := ReloadOnSourceChanges
33
inThisBuild(
44
Seq(
55
organization := "io.github.fun-stack",
6-
scalaVersion := "2.13.12",
6+
scalaVersion := crossScalaVersions.value.last,
7+
crossScalaVersions := Seq("2.13.12", "3.3.1"),
78
licenses := Seq("MIT License" -> url("https://opensource.org/licenses/MIT")),
89
homepage := Some(url("https://github.com/fun-stack/fun-stack-scala")),
910
scmInfo := Some(
@@ -65,8 +66,8 @@ lazy val backend = project
6566
name := "fun-stack-backend",
6667
libraryDependencies ++=
6768
Deps.cats.effect.value ::
68-
Deps.awsSdkJS.sns.value ::
69-
Deps.awsSdkJS.cognitoidentityprovider.value ::
69+
Deps.awsSdkJS.sns.value.cross(CrossVersion.for3Use2_13) ::
70+
Deps.awsSdkJS.cognitoidentityprovider.value.cross(CrossVersion.for3Use2_13) ::
7071
Deps.sloth.value ::
7172
Deps.mycelium.core.value ::
7273
Nil,
@@ -80,7 +81,7 @@ lazy val lambdaApigateway = project
8081
name := "fun-stack-lambda-apigateway",
8182
libraryDependencies ++=
8283
Deps.cats.effect.value ::
83-
Deps.awsLambdaJS.value ::
84+
Deps.awsLambdaJS.value.cross(CrossVersion.for3Use2_13) ::
8485
Nil,
8586
)
8687

@@ -147,8 +148,8 @@ lazy val lambdaWsEventAuthorizer = project
147148
name := "fun-stack-lambda-ws-event-authorizer",
148149
libraryDependencies ++=
149150
Deps.cats.effect.value ::
150-
Deps.awsSdkJS.sns.value ::
151-
Deps.awsLambdaJS.value ::
151+
Deps.awsSdkJS.sns.value.cross(CrossVersion.for3Use2_13) ::
152+
Deps.awsLambdaJS.value.cross(CrossVersion.for3Use2_13) ::
152153
Deps.sloth.value ::
153154
Nil,
154155
)
@@ -182,7 +183,7 @@ lazy val clientNode = project
182183
.settings(
183184
name := "fun-stack-client-node",
184185
libraryDependencies ++=
185-
Deps.awsSdkJS.cognitoidentityprovider.value ::
186+
Deps.awsSdkJS.cognitoidentityprovider.value.cross(CrossVersion.for3Use2_13) ::
186187
Nil,
187188
Compile / npmDependencies ++=
188189
NpmDeps.nodeFetch ::

0 commit comments

Comments
 (0)