-
Notifications
You must be signed in to change notification settings - Fork 52
/
build.sbt
79 lines (79 loc) · 3.29 KB
/
build.sbt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
lazy val root = (project in file("."))
.settings(
name := "grokkingfp-examples",
organization := "Michał Płachta (Manning)",
version := "1.0",
scalaVersion := "3.3.3",
scalacOptions ++= List("-unchecked", "-deprecation", "-explain"),
libraryDependencies ++= Seq(
"org.typelevel" %% "cats-effect" % "3.5.5",
"co.fs2" %% "fs2-core" % "3.11.0",
"org.scalatest" %% "scalatest" % "3.2.19" % Test,
"org.scalatestplus" %% "scalacheck-1-16" % "3.2.14.0" % Test,
// imperative libraries:
"com.typesafe.akka" % "akka-actor_2.13" % "2.6.20",
"org.apache.jena" % "apache-jena-libs" % "5.2.0",
"org.apache.jena" % "jena-fuseki-main" % "5.2.0",
"org.slf4j" % "slf4j-nop" % "2.0.16"
),
initialCommands := s"""
import fs2._, cats.effect._, cats.implicits._, cats.effect.unsafe.implicits.global
import scala.concurrent.duration._, java.util.concurrent._
import scala.jdk.javaapi.CollectionConverters.asScala
import org.apache.jena.query._, org.apache.jena.rdfconnection._
""",
run / fork := true,
run / javaOptions += "-ea",
addCommandAlias(
"runAll",
";runMain ch01_Intro" +
";runMain ch01_IntroScala" +
";runMain ch02_ShoppingCartDiscounts" +
";runMain ch02_TipCalculation" +
";runMain ch02_PureFunctions" +
";runMain ch02_ShoppingCartDiscountsScala" +
";runMain ch02_TipCalculationScala" +
";runMain ch02_TestingPureFunctions" +
";runMain ch03_ItineraryCopying" +
";runMain ch03_ItineraryOO" +
";runMain ch03_LapTimes" +
";runMain ch03_ListVsString" +
";runMain ch03_ListVsStringScala" +
";runMain ch03_AbbreviateNames" +
";runMain ch03_ItineraryScala" +
";runMain ch03_SlicingAndAppending" +
";runMain ch04_WordScoring" +
";runMain ch04_JavaFunctionIntro" +
";runMain ch04_WordScoringScala" +
";runMain ch04_PassingFunctions" +
";runMain ch04_ReturningFunctions" +
";runMain ch04_ProgrammingLanguages" +
";runMain ch05_BookAdaptations" +
";runMain ch05_BookFriendRecommendationsJava" +
";runMain ch05_BookFriendRecommendations" +
";runMain ch05_SequencedNestedFlatMaps" +
";runMain ch05_Points2d3d" +
";runMain ch05_RandomForComprehensions" +
";runMain ch05_PointsInsideCircles" +
";runMain ch05_StatementsVsExpressionsJava" +
";runMain ch05_StatementsVsExpressions" +
";runMain ch05_Events" +
";runMain ch06_TvShows" +
";runMain ch06_TvShowsJava" +
";runMain ch07_MusicArtistsSearch" +
";runMain ch07_Playlist" +
";runMain ch08_SchedulingMeetingsImpure" +
";runMain ch08_SchedulingMeetings" +
";runMain ch08_CardGame" +
";runMain ch08_CastingDie" +
";runMain ch09_CurrencyExchange" +
";runMain ch09_Stream123s" +
";runMain ch09_CastingDieStream" +
";runMain ch10_CheckIns" +
";runMain ch10_CheckInsImperative" +
";runMain ch10_CastingDieConcurrently" +
";runMain ch11_TravelGuide" +
";runMain ch12_TravelGuide" +
";runMain chA_ScalaCheatSheet"
)
)