-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.sbt
99 lines (80 loc) · 3.03 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
import org.scoverage.coveralls.Imports.CoverallsKeys._
import eie.io._
name := "args4c"
organization := "com.github.aaronp"
enablePlugins(GhpagesPlugin)
enablePlugins(ParadoxPlugin)
enablePlugins(SiteScaladocPlugin)
enablePlugins(ParadoxMaterialThemePlugin) // see https://jonas.github.io/paradox-material-theme/getting-started.html
//ParadoxMaterialThemePlugin.paradoxMaterialThemeSettings(Paradox)
val username = "aaronp"
val dottyVersion = "3.1.0"
scalaVersion := dottyVersion
crossScalaVersions := Seq(dottyVersion)
paradoxProperties += ("project.url" -> "https://aaronp.github.io/args4c/docs/current/")
Compile / paradoxMaterialTheme ~= {
_.withLanguage(java.util.Locale.ENGLISH)
.withColor("blue", "grey")
.withLogoIcon("cloud")
.withRepository(uri("https://github.com/aaronp/args4c"))
.withSocial(uri("https://github.com/aaronp"))
.withoutSearch()
}
ThisBuild / scalacOptions ++= List(
"-encoding", "UTF-8",
"-language:implicitConversions",
"-source:3.0-migration",
"-rewrite",
"-indent",
)
siteSourceDirectory := target.value / "paradox" / "site" / "main"
siteSubdirName in SiteScaladoc := "api/latest"
libraryDependencies += "com.typesafe" % "config" % "1.4.1" % "provided"
libraryDependencies ++= List(
"org.scalatest" %% "scalatest" % "3.2.9" % Test,
"org.pegdown" % "pegdown" % "1.6.0" % Test,
"javax.xml.bind" % "jaxb-api" % "2.3.1" % "provided"
)
publishMavenStyle := true
releaseCrossBuild := true
coverageMinimum := 90
coverageFailOnMinimum := true
git.remoteRepo := s"[email protected]:$username/args4c.git"
ghpagesNoJekyll := true
releasePublishArtifactsAction := PgpKeys.publishSigned.value
publishConfiguration := publishConfiguration.value.withOverwrite(true)
publishLocalConfiguration := publishLocalConfiguration.value.withOverwrite(true)
test in assembly := {}
publishTo := {
val nexus = "https://oss.sonatype.org/"
if (version.value.endsWith("SNAPSHOT"))
Some("snapshots" at nexus + "content/repositories/snapshots")
else
Some("releases" at nexus + "service/local/staging/deploy/maven2")
}
credentials += Credentials(Path.userHome / ".sbt" / ".credentials")
// https://coveralls.io/github/aaronp/args4c
// https://github.com/scoverage/sbt-coveralls#specifying-your-repo-token
coverallsTokenFile := Option((Path.userHome / ".sbt" / ".coveralls.args4c").asPath.toString)
buildInfoKeys := Seq[BuildInfoKey](name, version, scalaVersion, sbtVersion)
buildInfoPackage := "args4c.build"
// see http://scalameta.org/scalafmt/
ThisBuild / scalafmtOnCompile := true
ThisBuild / scalafmtVersion := "1.4.0"
pomExtra := {
<url>https://github.com/aaronp/args4c</url>
<licenses>
<license>
<name>Apache 2</name>
<url>http://www.apache.org/licenses/LICENSE-2.0</url>
<distribution>repo</distribution>
</license>
</licenses>
<developers>
<developer>
<id>Aaron</id>
<name>Aaron Pritzlaff</name>
<url>http://github.com/aaronp</url>
</developer>
</developers>
}