Skip to content

Commit d1971e2

Browse files
committed
Migrated scala-core to Scala 3
1 parent 84b7973 commit d1971e2

File tree

57 files changed

+15
-42
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+15
-42
lines changed

build.sbt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ val zioVersion = "2.0.19"
2525
lazy val scala_core = (project in file("scala-core-modules/scala-core"))
2626
.settings(
2727
name := "scala-core",
28+
scalaVersion := scala3Version,
2829
libraryDependencies ++=
2930
Seq(
30-
jUnitInterface,
31-
catsEffect
31+
jUnitInterface
3232
) ++ scalaTestDeps
3333
)
3434

@@ -62,6 +62,7 @@ lazy val scala2_core = (project in file("scala-core-modules/scala2-core"))
6262
libraryDependencies += "org.backuity.clist" %% "clist-macros" % "3.5.1" % "provided",
6363
libraryDependencies += "args4j" % "args4j" % "2.33",
6464
libraryDependencies += "org.scala-lang" % "scala-compiler" % scalaVersion.value % "test",
65+
libraryDependencies += catsEffect
6566
)
6667

6768
lazy val scala_core_4 = (project in file("scala-core-modules/scala-core-4"))

scala-core-modules/scala-core-2/src/test/scala/com/baeldung/scala/exceptionhandling/ExceptionHandlingUnitTest.scala

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
package com.baeldung.scala.exceptionhandling
22

3-
import com.baeldung.scala.exceptionhandling.ExceptionHandling.{
4-
DivideByZero,
5-
divideWithEither,
6-
divideWithOption,
7-
divideWithTry
8-
}
3+
import com.baeldung.scala.exceptionhandling.ExceptionHandling._
94
import org.scalatest.flatspec.AnyFlatSpec
105
import org.scalatest.matchers.should.Matchers
116

scala-core-modules/scala-core/README.md

Lines changed: 0 additions & 2 deletions

0 commit comments

Comments
 (0)