Skip to content

Commit

Permalink
Build: Update spotless and scalafmt versions
Browse files Browse the repository at this point in the history
  • Loading branch information
rozza committed Feb 16, 2023
1 parent 64cc1b9 commit ab4b685
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -240,8 +240,8 @@ private[codecs] object CaseClassCodec {
typeArgs += ($key -> {
val tpeArgs = mutable.ListBuffer.empty[Class[_]]
..${flattenTypeArgs(f).map(t =>
q"tpeArgs += classOf[${if (isCaseClass(t)) t.finalResultType else t.finalResultType.erasure}]"
)}
q"tpeArgs += classOf[${if (isCaseClass(t)) t.finalResultType else t.finalResultType.erasure}]"
)}
tpeArgs.toList
})"""
})
Expand Down Expand Up @@ -292,8 +292,8 @@ private[codecs] object CaseClassCodec {
val flattenedFieldTypes = fields.flatMap({ case (t, types) => types.map(f => f._2) :+ t })
val setClassToCaseClassMap = flattenedFieldTypes.map(t =>
q"""classToCaseClassMap ++= ${flattenTypeArgs(t).map(t =>
q"(classOf[${t.finalResultType.erasure}], ${isCaseClass(t) || isCaseObject(t) || isSealed(t)})"
)}"""
q"(classOf[${t.finalResultType.erasure}], ${isCaseClass(t) || isCaseObject(t) || isSealed(t)})"
)}"""
)

q"""
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ buildscript {

// Scala plugins
classpath "com.adtran:scala-multiversion-plugin:2.0.4"
classpath "com.diffplug.spotless:spotless-plugin-gradle:6.3.0"
classpath "com.diffplug.spotless:spotless-plugin-gradle:6.14.0"

// Test logging plugin
classpath 'com.adarshr:gradle-test-logger-plugin:2.1.0'
Expand Down
2 changes: 1 addition & 1 deletion config/scala/scalafmt.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version = "3.4.3"
version = "3.7.1"
runner.dialect = scala213

preset = default
Expand Down

0 comments on commit ab4b685

Please sign in to comment.