-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.sbt
60 lines (38 loc) · 1.75 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
name := "pebble-scala"
crossScalaVersions := Seq("3.3.0", "2.13.11", "2.12.18")
scalaVersion := crossScalaVersions.value.head
scalacOptions += "-deprecation"
Test / parallelExecution := false
//lazy val docs = (project in file("docs"))
// .enablePlugins(ParadoxSitePlugin)
// .enablePlugins(ParadoxMaterialThemePlugin)
// .enablePlugins(GhpagesPlugin)
// .settings(
// name := "pebble scala docs",
// scalaVersion := "2.13.11",
// publish / skip := true,
// ghpagesNoJekyll := true,
// git.remoteRepo := "git@github.com:sfxcode/pebble-scala.git",
// Compile / paradoxMaterialTheme ~= {
// _.withRepository(uri("https://github.com/sfxcode/pebble-scala"))
// },
// (Compile / paradoxMarkdownToHtml / excludeFilter) := (Compile / paradoxMarkdownToHtml / excludeFilter).value ||
// ParadoxPlugin.InDirectoryFilter((Compile / paradox / sourceDirectory).value / "includes")
// )
buildInfoOptions += BuildInfoOption.BuildTime
resolvers += "Sonatype OSS Snapshots" at "https://oss.sonatype.org/content/repositories/snapshots"
// Test dependencies
libraryDependencies += "org.scalameta" %% "munit" % "1.0.0-M10" % Test
libraryDependencies += "ch.qos.logback" % "logback-classic" % "1.4.14" % Test
libraryDependencies += "joda-time" % "joda-time" % "2.12.6" % Test
// Runtime dependencies
libraryDependencies += "io.pebbletemplates" % "pebble" % "3.2.2"
libraryDependencies += "org.scala-lang.modules" %% "scala-collection-compat" % "2.11.0"
// Plugins
enablePlugins(BuildInfoPlugin)
buildInfoPackage := "com.sfxcode.templating.pebble"
buildInfoOptions += BuildInfoOption.BuildTime
buildInfoKeys ++= Seq[BuildInfoKey](name, version, scalaVersion, sbtVersion)
scalafmtOnCompile := false
coverageMinimumStmtTotal := 70
coverageFailOnMinimum := true