Skip to content

Commit 81ee1b9

Browse files
committed
Migrated scala-core-8 to scala3
1 parent 33dd2ab commit 81ee1b9

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

build.sbt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ lazy val scala_core_8 = (project in file("scala-core-modules/scala-core-8"))
101101
.settings(
102102
name := "scala-core-8",
103103
libraryDependencies ++= scalaTestDeps,
104+
scalaVersion := scala3Version,
104105
libraryDependencies += "org.scala-lang.modules" %% "scala-java8-compat" % "1.0.2",
105106
libraryDependencies += "com.typesafe" % "config" % "1.2.1"
106107
// scalacOptions += "-Ymacro-debug-lite"

scala-core-modules/scala-core-8/src/main/scala/com/baeldung/scala/builderpattern/GuitarBuilder.scala

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,6 @@ case class GuitarBuilder private (
3131
delay = delay
3232
)
3333
}
34+
object GuitarBuilder {
35+
def apply(): GuitarBuilder = new GuitarBuilder()
36+
}

0 commit comments

Comments
 (0)