8000 Fix deprecation for sbt 1.7+ and Scala 3 by ekrich · Pull Request #105 · ekrich/sjavatime · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fix deprecation for sbt 1.7+ and Scala 3 #105

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

Merged
merged 3 commits into from
Mar 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ val versionsNative = versionsJVM

ThisBuild / scalaVersion := scala213
ThisBuild / versionScheme := Some("early-semver")
ThisBuild / resolvers += Resolver.sonatypeRepo("snapshots")
ThisBuild / resolvers ++= Resolver.sonatypeOssRepos("snapshots")

inThisBuild(
List(
Expand Down
2 changes: 1 addition & 1 deletion project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// To test snapshots
resolvers += Resolver.sonatypeRepo("snapshots")
resolvers ++= Resolver.sonatypeOssRepos("snapshots")

// versions
val crossVer = "1.2.0"
Expand Down
2 changes: 1 addition & 1 deletion sjavatime/shared/src/main/scala/java/time/Instant.scala
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ object Instant {
try {
val pattern = """(^[-+]?)(\d*)-(\d*)-(\d*)T(\d*):(\d*):(\d*).?(\d*)Z""".r
val pattern(sign, yearSegment, monthSegment, daySegment,
hourSegment, minutesSegment, secondsSegment, nanosecondsSegment) = text
hourSegment, minutesSegment, secondsSegment, nanosecondsSegment) = text: @unchecked

val year = parseSegment(sign + yearSegment, "year")
val month = parseSegment(monthSegment, "month")
Expand Down
2 changes: 1 addition & 1 deletion sjavatime/shared/src/main/scala/java/time/LocalDate.scala
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ object LocalDate {
def parse(text: CharSequence): LocalDate = {
try {
val pattern = """(^[-+]?)(\d*)-(\d*)-(\d*)""".r
val pattern(sign, yearSegment, monthSegment, daySegment) = text
val pattern(sign, yearSegment, monthSegment, daySegment) = text: @unchecked

val year = parseSegment(sign + yearSegment, "year")
val month = parseSegment(monthSegment, "month")
Expand Down
0