-
Notifications
You must be signed in to change notification settings - Fork 7
/
build.sbt
55 lines (43 loc) · 1.58 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
import scalariform.formatter.preferences._
val scalaVersion_2_12 = "2.12.13"
val scalaVersion_2_13 = "2.13.5"
name := """play-json-naming"""
version := "1.5.1-SNAPSHOT"
scalaVersion := scalaVersion_2_13
crossScalaVersions := Seq(scalaVersion_2_12, scalaVersion_2_13)
libraryDependencies ++= Seq(
"com.typesafe.play" %% "play-json" % "2.9.2" % "provided",
"org.scalatest" %% "scalatest" % "3.2.8" % "test"
)
organization := "com.github.tototoshi"
scalariformPreferences := scalariformPreferences.value
.setPreference(AlignSingleLineCaseStatements, true)
.setPreference(DoubleIndentConstructorArguments, true)
.setPreference(DanglingCloseParenthesis, Preserve)
publishMavenStyle := true
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")
}
publishArtifact in Test := false
pomExtra :=
<url>https://github.com/tototoshi/play-json-naming</url>
<licenses>
<license>
<name>Apache License, Version 2.0</name>
<url>https://github.com/tototoshi/play-json-naming/blob/master/LICENSE.txt</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<url>[email protected]:tototoshi/play-json-naming.git</url>
<connection>scm:git:[email protected]:tototoshi/play-json-naming.git</connection>
</scm>
<developers>
<developer>
<id>tototoshi</id>
<name>Toshiyuki Takahashi</name>
<url>https://tototoshi.github.com</url>
</developer>
</developers>