-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathbuild.sbt
81 lines (59 loc) · 2.61 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
import LiftModule.{liftVersion, liftEdition}
name := "mapperauth"
organization := "net.liftmodules"
version := "0.7-SNAPSHOT"
liftVersion := "3.2.0"
liftEdition := liftVersion.value.substring(0,3)
moduleName := name.value + "_" + liftEdition.value
scalaVersion := "2.12.6"
crossScalaVersions := Seq("2.12.6", "2.11.11")
resolvers ++= Seq(
"CB Central Mirror" at "http://repo.cloudbees.com/content/groups/public",
"Sonatype OSS Release" at "https://oss.sonatype.org/content/repositories/releases",
"Sonatype Snapshot" at "https://oss.sonatype.org/content/repositories/snapshots"
)
libraryDependencies ++=
"net.liftweb" %% "lift-mapper" % liftVersion.value % "provided" ::
"net.liftweb" %% "lift-webkit" % liftVersion.value % "provided" ::
"ch.qos.logback" % "logback-classic" % "1.0.6" % "provided" ::
"org.scalatest" %% "scalatest" % "3.0.1" % "test" ::
Nil
scalacOptions := Seq("-deprecation", "-unchecked")
// Sonatype publishing set up below this point
publishTo := { version.value.endsWith("SNAPSHOT") match {
case true => Some("snapshots" at "https://oss.sonatype.org/content/repositories/snapshots")
case false => Some("releases" at "https://oss.sonatype.org/service/local/staging/deploy/maven2")
}}
credentials += Credentials( file("sonatype.credentials") )
credentials += Credentials( file(System.getenv().get("HOME") + "/Keys/sonatype.credentials") )
credentials ++= (for {
username <- Option(System.getenv().get("SONATYPE_USERNAME"))
password <- Option(System.getenv().get("SONATYPE_PASSWORD"))
} yield Credentials("Sonatype Nexus Repository Manager", "oss.sonatype.org", username, password)).toSeq
publishMavenStyle := true
publishArtifact in Test := false
pomIncludeRepository := { _ => false }
pomExtra := (
<url>https://github.com/tuhlmann/lift-mapperauth</url>
<licenses>
<license>
<name>Apache 2.0 License</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.html</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<url>git@github.com:tuhlmann/lift-mapperauth.git</url>
<connection>scm:git:git@github.com:tuhlmann/lift-mapperauth.git</connection>
</scm>
<developers>
<developer>
<id>tuhlmann</id>
<name>Torsten Uhlmann</name>
<url>http://agynamix.de</url>
</developer>
</developers>
)
// Remove Java directories, otherwise sbteclipse generates them
unmanagedSourceDirectories in Compile := Seq((scalaSource in Compile).value)
unmanagedSourceDirectories in Test := Seq((scalaSource in Test).value)