File tree Expand file tree Collapse file tree 3 files changed +7
-6
lines changed
scala-core-modules/scala-core-dates/src/test/scala-2/com/baeldung/scala Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -62,10 +62,7 @@ lazy val scala_core_5 = (project in file("scala-core-modules/scala-core-5"))
62
62
name := " scala-core-5" ,
63
63
libraryDependencies ++= scalaTestDeps,
64
64
libraryDependencies += jUnitInterface,
65
- libraryDependencies += scalaReflection,
66
- libraryDependencies += " joda-time" % " joda-time" % " 2.12.5" ,
67
- libraryDependencies += " org.joda" % " joda-convert" % " 2.2.3" ,
68
- libraryDependencies += " com.github.nscala-time" %% " nscala-time" % " 2.32.0"
65
+ libraryDependencies += scalaReflection
69
66
)
70
67
71
68
lazy val scala_core_6 = (project in file(" scala-core-modules/scala-core-6" ))
@@ -123,7 +120,10 @@ lazy val scala_core_fp = (project in file("scala-core-modules/scala-core-fp"))
123
120
lazy val scala_core_dates = (project in file(" scala-core-modules/scala-core-dates" ))
124
121
.settings(
125
122
name := " scala-core-dates" ,
126
- libraryDependencies ++= scalaTestDeps
123
+ libraryDependencies ++= scalaTestDeps,
124
+ libraryDependencies += " joda-time" % " joda-time" % " 2.12.5" ,
125
+ libraryDependencies += " com.github.nscala-time" %% " nscala-time" % " 2.32.0" ,
126
+ libraryDependencies += " com.typesafe" % " config" % " 1.4.3" ,
127
127
)
128
128
129
129
lazy val scala_lang = (project in file(" scala-lang-modules/scala-lang" ))
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import org.scalatest.matchers.should.Matchers
5
5
6
6
import java .time .temporal .ChronoUnit
7
7
import java .time .{LocalDate , Period }
8
+ import DifferenceBetweenDates ._
8
9
9
10
class DifferenceBetweenDatesTest extends AnyWordSpec with Matchers {
10
11
Original file line number Diff line number Diff line change 1
1
package com .baeldung .scala .duration
2
2
3
+ import com .baeldung .scala .duration .JavaToScalaDuration .{asFiniteDuration , asFiniteDurationFromConf }
3
4
import org .scalatest .funsuite .AnyFunSuite
4
5
5
6
import java .time .Duration
6
7
import java .time .temporal .ChronoUnit
7
8
import java .util .concurrent .TimeUnit
8
9
import scala .concurrent .duration .{FiniteDuration , HOURS }
9
-
10
10
import scala .jdk .DurationConverters .JavaDurationOps
11
11
12
12
class DurationTest extends AnyFunSuite {
You can’t perform that action at this time.
0 commit comments