forked from marcospereira/play-i18n-hocon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
63 lines (53 loc) · 1.88 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
name := "play-hocon-i18n"
organization := "com.github.marcospereira"
scalaVersion := "2.11.8"
startYear := Some(2016)
description := "A Play modules that provides I18n using Hocon as the messages file."
scalacOptions := Seq("-feature", "-deprecation", "-Ywarn-unused-import")
libraryDependencies ++= Seq(
"org.scalatestplus.play" %% "scalatestplus-play" % "1.5.1" % Test
)
lazy val root = (project in file("."))
.enablePlugins(PlayScala)
.disablePlugins(PlayLayoutPlugin)
.settings(publishSettings: _*)
.settings(githubPagesSettings: _*)
lazy val githubPagesSettings = ghpages.settings ++ Seq(
git.remoteRepo := "[email protected]:marcospereira/play-i18n-hocon.git"
)
lazy val publishSettings = Seq(
publishMavenStyle := true,
publishTo := {
val nexus = "https://oss.sonatype.org/"
if (isSnapshot.value)
Some("snapshots" at nexus + "content/repositories/snapshots")
else
Some("releases" at nexus + "service/local/staging/deploy/maven2")
},
credentials += Credentials(Path.userHome / ".ivy2" / ".credentials"),
autoScalaLibrary := false,
autoScalaLibrary in test := false,
publishArtifact in Test := false,
pomIncludeRepository := { _ => false },
pomExtra :=
<url>https://github.com/marcospereira/play-i18n-hocon</url>
<licenses>
<license>
<name>Apache License</name>
<url>http://www.apache.org/licenses/LICENSE-2.0</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<url>https://github.com/marcospereira/play-i18n-hocon.git</url>
<connection>scm:[email protected]:marcospereira/play-i18n-hocon.git</connection>
</scm>
<developers>
<developer>
<id>marcospereira</id>
<name>Marcos Pereira</name>
<url>https://github.com/marcospereira</url>
</developer>
</developers>
)
addCommandAlias("full-release", ";release;publishSigned;sonatypeRelease")