File tree Expand file tree Collapse file tree 6 files changed +6
-14
lines changed
main/scala-3/spray/json/derived
test/scala-3/spray/json/derived Expand file tree Collapse file tree 6 files changed +6
-14
lines changed Original file line number Diff line number Diff line change @@ -5,13 +5,13 @@ pull_request_rules:
55 - title~=^Update\s.*
66 - " status-success=test (adopt@1.8, 2.12.18)"
77 - " status-success=test (adopt@1.8, 2.13.11)"
8- - " status-success=test (adopt@1.8, 3.2.2 )"
8+ - " status-success=test (adopt@1.8, 3.3.1 )"
99 - " status-success=test (openjdk@1.11, 2.12.18)"
1010 - " status-success=test (openjdk@1.11, 2.13.11)"
11- - " status-success=test (openjdk@1.11, 3.2.2 )"
11+ - " status-success=test (openjdk@1.11, 3.3.1 )"
1212 - " status-success=test (openjdk@1.17, 2.12.18)"
1313 - " status-success=test (openjdk@1.17, 2.13.11)"
14- - " status-success=test (openjdk@1.17, 3.2.2 )"
14+ - " status-success=test (openjdk@1.17, 3.3.1 )"
1515 actions :
1616 merge :
1717 method : squash
Original file line number Diff line number Diff line change 1616 scala :
1717 - 2.12.18
1818 - 2.13.11
19- - 3.2.2
19+ - 3.3.1
2020 runs-on : ubuntu-latest
2121 steps :
2222 - name : Checkout
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ name := "spray-json-derived-codecs"
44
55lazy val scala212 = " 2.12.18"
66lazy val scala213 = " 2.13.11"
7- lazy val scala3 = " 3.2.2 "
7+ lazy val scala3 = " 3.3.1 "
88lazy val supportedScalaVersions = List (scala212, scala213, scala3)
99
1010ThisBuild / scalafmtOnCompile := false
@@ -13,7 +13,7 @@ ThisBuild / startYear := Some(2020)
1313
1414lazy val root = (project in file(" ." ))
1515 .settings(
16- scalaVersion := scala213 ,
16+ scalaVersion := scala3 ,
1717 releaseCrossBuild := true ,
1818 releasePublishArtifactsAction := PgpKeys .publishSigned.value,
1919 crossScalaVersions := supportedScalaVersions,
Original file line number Diff line number Diff line change @@ -18,6 +18,4 @@ package spray
1818package json
1919package derived
2020
21- import scala .annotation .implicitNotFound
22-
2321class MkJsonFormat [T ](val value : Context => JsonFormat [T ]) extends AnyVal
Original file line number Diff line number Diff line change @@ -18,10 +18,6 @@ package spray
1818package json
1919package derived
2020
21- import spray .json .{JsString , JsValue , JsonFormat }
22-
23- import spray .json .derived .MkJsonFormat
24-
2521import scala .deriving ._
2622import scala .compiletime ._
2723
@@ -56,7 +52,6 @@ object LazyMk {
5652 val pElem = obj.asInstanceOf [Product ]
5753 (pElem.productElementNames.toList zip pElem.productIterator.toList zip formats)
5854 .map { case ((label, elem), format) =>
59- val encoded = format.asInstanceOf [JsonFormat [Any ]].write(elem)
6055 elem match {
6156 case None if ! configuration.renderNullOptions =>
6257 JsObject .empty
Original file line number Diff line number Diff line change @@ -48,7 +48,6 @@ class DerivedCodecsSpec
4848
4949 Scenario (" tuple type" ) {
5050 import spray .json .DefaultJsonProtocol ._
51- import spray .json .derived .auto ._
5251
5352 type Cat = (String , Int )
5453 val cat : Cat = (" Oliver" , 7 )
You can’t perform that action at this time.
0 commit comments