-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
62 lines (60 loc) · 2.06 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
import play.sbt.PlayScala
import ReleaseTransformations._
val scalaRelease = "2.13.14"
val scalaCrossVersions = Seq(scalaRelease)
lazy val root =
project.in(file(".")).settings(
organization := "io.github.godenji",
homepage := Some(url("https://github.com/godenji/play-reverse-router")),
licenses := Seq("BSD 2-clause License" -> url(
"https://github.com/godenji/play-reverse-router/blob/master/LICENSE.txt"
)),
name := "reverse-router",
description := "generates global reverse router for one to many Play subproject(s)",
scalaVersion := scalaRelease,
crossScalaVersions := scalaCrossVersions,
libraryDependencies += "com.typesafe.play" %% "routes-compiler" % "2.9.0-M6" withSources(),
releaseCrossBuild := true,
releaseProcess := Seq[ReleaseStep](
checkSnapshotDependencies,
inquireVersions,
runClean,
runTest,
setReleaseVersion,
commitReleaseVersion,
tagRelease,
releaseStepCommandAndRemaining("publishSigned"),
setNextVersion,
commitNextVersion,
releaseStepCommand("sonatypeReleaseAll"),
pushChanges
),
credentials ++= {
val creds = Path.userHome / ".sonatype" / organization.value
if (creds.exists) Seq(Credentials(creds)) else Nil
},
pomExtra := (
<developers>
<developer>
<id>godenji</id>
<name>N.S. Cutler</name>
<url>https://github.com/godenji</url>
</developer>
</developers>
<scm>
<url>[email protected]:godenji/play-reverse-router.git</url>
<connection>scm:git:[email protected]:godenji/play-reverse-router.git</connection>
</scm>
),
publishTo := sonatypePublishTo.value,
scalacOptions in (Compile, doc) ++= {
val hash = sys.process.Process("git rev-parse HEAD").lineStream_!.head
Seq(
"-sourcepath",
(baseDirectory in LocalRootProject).value.getAbsolutePath,
"-doc-source-url",
s"https://github.com/godenji/play-reverse-router/tree/${hash}€{FILE_PATH}.scala"
)
}
).
enablePlugins(PlayScala)