Update build configuration and add library dependencies
This commit is contained in:
8
.idea/.gitignore
generated
vendored
8
.idea/.gitignore
generated
vendored
@@ -1,8 +0,0 @@
|
|||||||
# Default ignored files
|
|
||||||
/shelf/
|
|
||||||
/workspace.xml
|
|
||||||
# Editor-based HTTP Client requests
|
|
||||||
/httpRequests/
|
|
||||||
# Datasource local storage ignored files
|
|
||||||
/dataSources/
|
|
||||||
/dataSources.local.xml
|
|
||||||
@@ -11,6 +11,8 @@ import play.api.mvc._
|
|||||||
@Singleton
|
@Singleton
|
||||||
class HomeController @Inject()(val controllerComponents: ControllerComponents) extends BaseController {
|
class HomeController @Inject()(val controllerComponents: ControllerComponents) extends BaseController {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create an Action to render an HTML page.
|
* Create an Action to render an HTML page.
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
@()
|
@()
|
||||||
|
|
||||||
@main("Welcome to Play") {
|
@main("Welcome to Play") {
|
||||||
|
|
||||||
<h1>Welcome to Play!</h1>
|
<h1>Welcome to Play!</h1>
|
||||||
}
|
}
|
||||||
|
|||||||
40
build.sbt
40
build.sbt
@@ -3,8 +3,10 @@ organization := "com.example"
|
|||||||
|
|
||||||
version := "1.0-SNAPSHOT"
|
version := "1.0-SNAPSHOT"
|
||||||
|
|
||||||
lazy val root = (project in file(".")).enablePlugins(PlayScala)
|
lazy val root = (project in file(".")).enablePlugins(PlayScala).settings(
|
||||||
lazy val old = (project in file("./knockoutwhist"))
|
Compile / unmanagedSourceDirectories += baseDirectory.value / "knockoutwhist",
|
||||||
|
Test / unmanagedSourceDirectories += baseDirectory.value / "knockoutwhist"
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
scalaVersion := "3.5.1"
|
scalaVersion := "3.5.1"
|
||||||
@@ -12,3 +14,37 @@ scalaVersion := "3.5.1"
|
|||||||
libraryDependencies += guice
|
libraryDependencies += guice
|
||||||
libraryDependencies += "org.scalatestplus.play" %% "scalatestplus-play" % "7.0.2" % Test
|
libraryDependencies += "org.scalatestplus.play" %% "scalatestplus-play" % "7.0.2" % Test
|
||||||
|
|
||||||
|
libraryDependencies ++= Seq(
|
||||||
|
guice,
|
||||||
|
"org.scalatestplus.play" %% "scalatestplus-play" % "7.0.2" % Test,
|
||||||
|
)
|
||||||
|
|
||||||
|
libraryDependencies += "org.scalactic" %% "scalactic" % "3.2.18"
|
||||||
|
libraryDependencies += "org.scalatest" %% "scalatest" % "3.2.18" % "test"
|
||||||
|
libraryDependencies +="io.github.mkpaz" % "atlantafx-base" % "2.0.1"
|
||||||
|
libraryDependencies += "org.scalafx" %% "scalafx" % "22.0.0-R33"
|
||||||
|
|
||||||
|
libraryDependencies += "org.scala-lang.modules" %% "scala-xml" % "2.3.0"
|
||||||
|
libraryDependencies += "org.playframework" %% "play-json" % "3.1.0-M1"
|
||||||
|
|
||||||
|
libraryDependencies ++= {
|
||||||
|
// Determine OS version of JavaFX binaries
|
||||||
|
lazy val osName = System.getProperty("os.name") match {
|
||||||
|
case n if n.startsWith("Linux") => "linux"
|
||||||
|
case n if n.startsWith("Mac") => "mac"
|
||||||
|
case n if n.startsWith("Windows") => "win"
|
||||||
|
case _ => throw new Exception("Unknown platform!")
|
||||||
|
}
|
||||||
|
Seq("base", "controls", "fxml", "graphics", "media", "swing", "web")
|
||||||
|
.map(m => "org.openjfx" % s"javafx-$m" % "21" classifier osName)
|
||||||
|
}
|
||||||
|
|
||||||
|
libraryDependencies += "net.codingwell" %% "scala-guice" % "7.0.0"
|
||||||
|
|
||||||
|
Test / testOptions += Tests.Filter(_.equals("de.knockoutwhist.TestSequence"))
|
||||||
|
|
||||||
|
coverageEnabled := true
|
||||||
|
coverageFailOnMinimum := true
|
||||||
|
coverageMinimumStmtTotal := 85
|
||||||
|
coverageMinimumBranchTotal := 100
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user