-
Notifications
You must be signed in to change notification settings - Fork 19
/
build.sbt
56 lines (52 loc) · 1.66 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
import scalariform.formatter.preferences._
lazy val root = (project in file(".")).settings(
organization := "org.scalatra.sbt",
name := "sbt-scalatra",
sbtPlugin := true,
version := "1.0.5-SNAPSHOT",
scalacOptions ++= Seq("-unchecked", "-deprecation", "-feature"),
libraryDependencies += {
Defaults.sbtPluginExtra(
"com.earldouglas" % "xsbt-web-plugin" % "4.2.5",
(pluginCrossBuild / sbtBinaryVersion).value,
(pluginCrossBuild / scalaBinaryVersion).value
)
},
publishTo := {
if (version.value.trim.endsWith("SNAPSHOT")) Some(Opts.resolver.sonatypeSnapshots)
else Some(Opts.resolver.sonatypeStaging)
},
publishMavenStyle := true,
pomIncludeRepository := { x => false },
pomExtra := <url>https://github.com/scalatra/sbt-scalatra/</url>
<licenses>
<license>
<name>BSD License</name>
<url>https://github.com/scalatra/sbt-scalatra/blob/master/LICENSE</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<url>git@github.com:scalatra/sbt-scalatra.git</url>
<connection>scm:git:git@github.com:scalatra/sbt-scalatra.git</connection>
</scm>
<developers>
<developer>
<id>dozed</id>
<name>Stefan Ollinger</name>
<url>https://github.com/dozed</url>
</developer>
<developer>
<id>seratch</id>
<name>Kazuhiro Sera</name>
<url>http://git.io/sera</url>
</developer>
</developers>
)
scalariformPreferences := scalariformPreferences.value
.setPreference(DanglingCloseParenthesis, Force)
enablePlugins(ScriptedPlugin)
scriptedLaunchOpts ++= Seq(
"scalatra_version" -> "2.8.4",
"scala_version" -> "2.13.15",
).map{ case (k, v) => s"-D$k=$v" }