Skip to content

Commit cdb989d

Browse files
committed
Updating SBT configuration
SBT conf is now in `build.sbt`. The publishing configuration now uses Sonatype OSS repository. Play / ES versions have been upgraded
1 parent 5c3c9a3 commit cdb989d

File tree

3 files changed

+64
-32
lines changed

3 files changed

+64
-32
lines changed

module/build.sbt

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
import play.Project._
2+
import scala.Some
3+
import xerial.sbt.Sonatype.SonatypeKeys._
4+
import xerial.sbt.Sonatype._
5+
6+
name := "play2-elasticsearch"
7+
8+
version := "0.8-SNAPSHOT"
9+
10+
libraryDependencies ++= Seq(
11+
javaCore,
12+
// Add your project dependencies here
13+
"org.elasticsearch" % "elasticsearch" % "0.90.12",
14+
"org.apache.commons" % "commons-lang3" % "3.1"
15+
)
16+
17+
play.Project.playJavaSettings
18+
19+
sonatypeSettings
20+
21+
organization := "com.clever-age"
22+
23+
profileName := "com.clever-age"
24+
25+
crossPaths := false
26+
27+
publishMavenStyle := true
28+
29+
publishArtifact in Test := false
30+
31+
pomIncludeRepository := { _ => false }
32+
33+
publishTo := {
34+
val nexus = "https://oss.sonatype.org/"
35+
if (isSnapshot.value)
36+
Some("snapshots" at nexus + "content/repositories/snapshots")
37+
else
38+
Some("releases" at nexus + "service/local/staging/deploy/maven2")
39+
}
40+
41+
licenses := Seq("MIT" -> url("http://opensource.org/licenses/MIT"))
42+
43+
homepage := Some(url("https://github.com/cleverage/play2-elasticsearch"))
44+
45+
pomExtra := (
46+
<scm>
47+
<url>git@github.com:cleverage/play2-elasticsearch.git</url>
48+
<connection>scm:git:git@github.com:cleverage/play2-elasticsearch.git</connection>
49+
</scm>
50+
<developers>
51+
<developer>
52+
<id>nboire</id>
53+
<name>Nicolas Boire</name>
54+
</developer>
55+
<developer>
56+
<id>mguillermin</id>
57+
<name>Matthieu Guillermin</name>
58+
<url>http://matthieuguillermin.fr</url>
59+
</developer>
60+
</developers>)
61+

module/project/Build.scala

Lines changed: 0 additions & 32 deletions
This file was deleted.

module/project/plugins.sbt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,6 @@ resolvers += "Typesafe repository" at "http://repo.typesafe.com/typesafe/release
66

77
// Use the Play sbt plugin for Play projects
88
addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.2.1")
9+
10+
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "0.2.1")
11+

0 commit comments

Comments
 (0)