-
Notifications
You must be signed in to change notification settings - Fork 34
/
build.sbt
47 lines (29 loc) · 1.44 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
import xerial.sbt.Sonatype._
enablePlugins(play.sbt.routes.RoutesCompiler, GitVersioning, SbtTwirl)
organization := "org.webjars"
name := "webjars-play"
val Scala213 = "2.13.15"
val Scala3 = "3.3.4"
scalaVersion := Scala213
crossScalaVersions := Seq(Scala213, Scala3)
javacOptions ++= Seq("--release", "11")
scalacOptions ++= Seq("-release", "11","-unchecked", "-deprecation")
Compile / play.sbt.routes.RoutesKeys.routes / sources ++= ((Compile / unmanagedResourceDirectories).value * "webjars.routes").get
Test / play.sbt.routes.RoutesKeys.routes / sources ++= ((Test / unmanagedResourceDirectories).value * "routes").get
val playVersion = play.core.PlayVersion.current
resolvers += Resolver.mavenLocal
versionScheme := Some("semver-spec")
libraryDependencies ++= Seq(
"org.playframework" %% "play" % playVersion % "provided",
"org.webjars" % "requirejs" % "2.3.7",
"org.webjars" % "webjars-locator" % "0.52",
"org.playframework" %% "play-test" % playVersion % "test",
"org.playframework" %% "play-specs2" % playVersion % "test",
"org.webjars" % "bootstrap" % "3.1.1-2" % "test",
"org.webjars" % "react" % "0.12.2" % "test",
"org.webjars" % "bootswatch-yeti" % "3.1.1+1" % "test"
)
licenses := Seq("MIT License" -> url("http://opensource.org/licenses/MIT"))
sonatypeProjectHosting := Some(GitHubHosting("webjars", "webjars-play", "[email protected]"))
Test / javaOptions := Seq("-Dlogger.resource=logback-test.xml")
Test / fork := true