-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
sergei.winitzki
committed
Nov 22, 2023
1 parent
354fe44
commit 1c90593
Showing
5 changed files
with
75 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
val scala2V = "2.13.11" | ||
val scala3V = "3.3.1" | ||
val scalaV = scala2V | ||
|
||
val munitTest = "org.scalameta" %% "munit" % "0.7.29" % Test | ||
def munitFramework = new TestFramework("munit.Framework") | ||
|
||
|
||
val assertVerboseTest = "com.eed3si9n.expecty" %% "expecty" % "0.16.0" % Test | ||
|
||
|
||
lazy val root = (project in file(".")) | ||
.settings(scalaVersion := scalaV, crossScalaVersions := Seq(scalaV), name := "sofp-solutions-root") | ||
.aggregate(chapter01, chapter02, common) | ||
|
||
lazy val chapter01 = (project in file("chapter01")) | ||
.settings( | ||
scalaVersion := scalaV, | ||
crossScalaVersions := Seq(scala2V, scala3V), | ||
Test / parallelExecution := true, | ||
Test / fork := false, | ||
scalafmtFailOnErrors := false, | ||
testFrameworks += munitFramework, | ||
libraryDependencies ++= Seq( | ||
munitTest, | ||
assertVerboseTest, | ||
), | ||
).dependsOn(common) | ||
|
||
lazy val chapter02 = (project in file("chapter02")) | ||
.settings( | ||
scalaVersion := scalaV, | ||
crossScalaVersions := Seq(scala2V, scala3V), | ||
Test / parallelExecution := true, | ||
Test / fork := false, | ||
scalafmtFailOnErrors := false, | ||
testFrameworks += munitFramework, | ||
libraryDependencies ++= Seq( | ||
munitTest, | ||
assertVerboseTest, | ||
), | ||
).dependsOn(common) | ||
|
||
lazy val common = (project in file("common")) | ||
.settings( | ||
scalaVersion := scalaV, | ||
crossScalaVersions := Seq(scala2V, scala3V), | ||
Test / parallelExecution := true, | ||
Test / fork := false, | ||
scalafmtFailOnErrors := false, | ||
testFrameworks += munitFramework, | ||
libraryDependencies ++= Seq( | ||
munitTest, | ||
assertVerboseTest, | ||
), | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package sofp.unit | ||
|
||
import com.eed3si9n.expecty.Expecty.expect | ||
|
||
import munit.FunSuite | ||
|
||
class Exercise1_1 extends FunSuite { | ||
|
||
test("exercise 1.1") { | ||
expect(1 == 0) | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
sbt.version=1.9.7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
addDependencyTreePlugin | ||
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.4.6") |