Skip to content

Commit 43e646c

Browse files
committed
scala 3 build
1 parent 090bc99 commit 43e646c

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
strategy:
2929
matrix:
3030
os: [ubuntu-latest]
31-
scala: [2.11, 2.12, 2.13]
31+
scala: [2.11, 2.12, 2.13, 3]
3232
java: [zulu@8]
3333
runs-on: ${{ matrix.os }}
3434
timeout-minutes: 60
@@ -131,6 +131,16 @@ jobs:
131131
tar xf targets.tar
132132
rm targets.tar
133133
134+
- name: Download target directories (3)
135+
uses: actions/download-artifact@v3
136+
with:
137+
name: target-${{ matrix.os }}-${{ matrix.java }}-3
138+
139+
- name: Inflate target directories (3)
140+
run: |
141+
tar xf targets.tar
142+
rm targets.tar
143+
134144
- env:
135145
CI_SNAPSHOT_RELEASE: +publishSigned
136146
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}

build.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ organization := "com.github.swagger-akka-http"
88

99
ThisBuild / scalaVersion := "2.13.10"
1010

11-
ThisBuild / crossScalaVersions := Seq("2.11.12", "2.12.17", "2.13.10")
11+
ThisBuild / crossScalaVersions := Seq("2.11.12", "2.12.17", "2.13.10", "3.2.1")
1212

1313
ThisBuild / organizationHomepage := Some(url("https://github.com/swagger-akka-http/swagger-enumeratum-module"))
1414

src/main/scala/com/github/swagger/enumeratum/converter/SwaggerEnumeratumModelConverter.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class SwaggerEnumeratumModelConverter extends ModelResolver(Json.mapper()) {
2222
if (isEnum(cls)) {
2323
val sp: Schema[String] = PrimitiveType.STRING.createProperty().asInstanceOf[Schema[String]]
2424
setRequired(annotatedType)
25-
getValues(cls).foreach { v: String =>
25+
getValues(cls).foreach { v =>
2626
sp.addEnumItemObject(v)
2727
}
2828
nullSafeList(annotatedType.getCtxAnnotations).foreach {

0 commit comments

Comments
 (0)