-
Notifications
You must be signed in to change notification settings - Fork 6
/
build.sbt
67 lines (51 loc) · 1.87 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
val liftVersion = settingKey[String]("Lift Web Framework full version number")
val liftEdition = settingKey[String]("Lift Edition (such as 2.6 or 3.0)")
name := "lift-formality"
organization := "com.hacklanta"
version := "1.3.0-SNAPSHOT"
scalaVersion := "2.13.6"
crossScalaVersions := Seq("2.13.6", "2.12.14", "2.11.12")
liftVersion := (liftVersion ?? "3.4.3").value
liftEdition := liftVersion.value.substring(0,3)
moduleName := name.value + "_" + liftEdition.value
resolvers += "Sonatype Snapshots Repository" at "https://oss.sonatype.org/content/repositories/snapshots"
libraryDependencies ++=
Seq(
"net.liftweb" %% "lift-webkit" % liftVersion.value,
"net.liftweb" %% "lift-testkit" % liftVersion.value % "test"
)
libraryDependencies ++= Seq(
"org.specs2" %% "specs2-core" % "4.12.12" % "test",
"org.specs2" %% "specs2-matcher-extra" % "4.12.12" % "test",
"org.mortbay.jetty" % "jetty" % "6.1.22" % "test"
)
scalacOptions ++= Seq("-deprecation","-feature","-Xfatal-warnings")
//scalacOptions in Test ++= Seq("-Yrangepos")
pomExtra :=
<url>http://github.com/Shadowfiend/sbt-resource-management</url>
<licenses>
<license>
<name>MIT</name>
<url>http://opensource.org/licenses/MIT</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<url>https://github.com/hacklanta/lift-formality.git</url>
<connection>https://github.com/hacklanta/lift-formality.git</connection>
</scm>
<developers>
<developer>
<id>shadowfiend</id>
<name>Antonio Salazar Cardozo</name>
<email>savedfastcool@gmail.com</email>
</developer>
</developers>
publishTo := {
val nexus = "https://oss.sonatype.org/"
if (version.value.trim.endsWith("SNAPSHOT"))
Some("snapshots" at nexus + "content/repositories/snapshots")
else
Some("releases" at nexus + "service/local/staging/deploy/maven2")
}
credentials += Credentials(Path.userHome / ".sonatype")