-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
69 lines (53 loc) · 1.91 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
organization := "com.osinka.play"
name := "play-legitbot"
homepage := Some(url("https://github.com/osinka/play-legitbot"))
startYear := Some(2015)
licenses += "Apache License, Version 2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0")
organizationName := "Osinka"
description := """Play Framework filter: allow only legitimate search bots to access the site"""
scalaVersion in ThisBuild := "2.11.8"
libraryDependencies in ThisBuild ++= Seq(
"com.typesafe.play" %% "play" % "2.4.8" % "provided",
"com.typesafe.play" %% "play-test" % "2.4.8" % "test",
"org.scalatest" %% "scalatest" % "3.0.0" % "test"
)
resolvers ++= Seq(
Resolver.typesafeRepo("releases"),
Resolver.sonatypeRepo("releases")
)
scalacOptions ++= List("-deprecation", "-unchecked", "-feature")
pomIncludeRepository := { x => false }
credentials <+= (version) map { version: String =>
val file =
if (version.trim endsWith "SNAPSHOT") "credentials_osinka"
else "credentials_sonatype"
Credentials(Path.userHome / ".ivy2" / file)
}
publishTo <<= (version) { version: String =>
Some(
if (version.trim endsWith "SNAPSHOT")
"Osinka Internal Repo" at "https://r.osinka.co/content/repositories/snapshots/"
else
"Sonatype OSS Staging" at "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
)
}
useGpg := true
pomExtra := <xml:group>
<developers>
<developer>
<id>alaz</id>
<email>azarov@osinka.com</email>
<name>Alexander Azarov</name>
<timezone>Europe/Riga</timezone>
</developer>
</developers>
<scm>
<connection>scm:git:git://github.com/osinka/play-legitbot.git</connection>
<developerConnection>scm:git:git@github.com:osinka/play-legitbot.git</developerConnection>
<url>http://github.com/osinka/play-legitbot</url>
</scm>
<issueManagement>
<system>github</system>
<url>http://github.com/osinka/play-legitbot/issues</url>
</issueManagement>
</xml:group>