Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bump: Scala 2.13.8 (drop 2.12), Akka 2.6.18 #2777

Merged
merged 19 commits into from Jan 18, 2022

Conversation

ennru
Copy link
Member

@ennru ennru commented Nov 19, 2021

Preparing for a major release of Alpakka to only publish Scala 2.13 artefacts.

  • Use @nowarn instead of Silencer plugin
  • Fix matches that were not exhaustive (some ugly fixes)
  • Avoid Scala 2.13 warnings

@ennru
Copy link
Member Author

ennru commented Nov 25, 2021

The ScalaDoc error in the Spring web module is scala/scala#9806 and will be fixed in Scala 2.13.8

@ennru ennru changed the title bump: Scala 2.13.7 (drop 2.12) bump: Scala 2.13.7 (drop 2.12), Akka 2.6.18 Jan 10, 2022
@mkurz
Copy link
Contributor

mkurz commented Jan 10, 2022

Scala 2.13.8 is on Maven Central already.

@ennru ennru changed the title bump: Scala 2.13.7 (drop 2.12), Akka 2.6.18 bump: Scala 2.13.8 (drop 2.12), Akka 2.6.18 Jan 10, 2022
@ennru ennru mentioned this pull request Jan 10, 2022
@ennru ennru marked this pull request as ready for review January 17, 2022 12:59
Copy link
Member

@johanandren johanandren left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

val codecRegistry =
fromRegistries(fromProviders(classOf[Number], classOf[DomainObject]), DEFAULT_CODEC_REGISTRY): @nowarn(
"msg=match may not be exhaustive"
)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No pattern matching going on here?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very hidden indeed:

[warn] /Users/enno/dev/alpakka/mongodb/src/test/scala/docs/scaladsl/MongoSinkSpec.scala:40:41: match may not be exhaustive.
[warn] It would fail on the following input: (x: String forSome x not in "Number")
[warn]     fromRegistries(fromProviders(classOf[Number], classOf[DomainObject]), DEFAULT_CODEC_REGISTRY)
[warn]                                         ^
[warn] /Users/enno/dev/alpakka/mongodb/src/test/scala/docs/scaladsl/MongoSinkSpec.scala:40:58: match may not be exhaustive.
[warn] It would fail on the following input: (x: String forSome x not in "DomainObject")
[warn]     fromRegistries(fromProviders(classOf[Number], classOf[DomainObject]), DEFAULT_CODEC_REGISTRY)

@@ -64,8 +62,7 @@ private[impl] class AlpakkaResultMapperHelper {
val columnName: String = column.name()
val fieldType: Class[_] = field.getType()

@silent("deprecated")
val isAccessible = field.isAccessible()
val isAccessible = field.isAccessible() // deprecated in JDK 11+
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, but @nowarn not needed?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alpakka builds on JDK 8.

@ennru ennru merged commit 49ec3aa into akka:master Jan 18, 2022
@ennru ennru deleted the ennru-drop-scala-2.12 branch January 18, 2022 10:41
@patriknw patriknw mentioned this pull request Sep 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants