-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathbuild.sbt
53 lines (52 loc) · 1.61 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
lazy val root = (project in file("."))
.enablePlugins(SbtPlugin, SbtTwirl)
.settings(
name := "sbt-zugen",
organization := "io.github.todokr",
version := "2021.12.0",
scriptedLaunchOpts := {
scriptedLaunchOpts.value ++
Seq("-Xmx1024M", "-Dplugin.version=" + version.value)
},
scriptedBufferLog := false,
scalacOptions ++= Seq(
"-feature",
"-deprecation",
"-unchecked",
"-Xlint",
"-Ywarn-dead-code",
"-Ywarn-numeric-widen",
"-Ywarn-unused"
),
libraryDependencies ++= Seq(
"org.scalameta" %% "scalameta" % "4.4.31",
"org.scalatest" %% "scalatest" % "3.2.0" % Test,
"org.scalacheck" %% "scalacheck" % "1.14.1" % Test
),
TwirlKeys.templateImports := Seq.empty
)
description := "A tool for generating Zu(図) of Scala project architecture"
licenses := List("EPL 2.0" -> new URL("https://www.eclipse.org/legal/epl-2.0/"))
homepage := Some(url("https://github.com/todokr/zugen"))
developers := List(
Developer(
id = "todokr",
name = "Shunsuke Tadokoro",
email = "[email protected]",
url = url("https://github.com/todokr")
)
)
scmInfo := Some(
ScmInfo(
url("https://github.com/todokr/zugen"),
"scm:[email protected]:todokr/zugen.git"
)
)
pomIncludeRepository := { _ => false }
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")
}
publishMavenStyle := true
credentials += Credentials(Path.userHome / ".sbt" / "sonatype_credentials")