-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
36 lines (32 loc) · 1.42 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
name := "command-line-reader"
ThisBuild / version := "1.1.0"
ThisBuild / versionScheme := Some("early-semver")
scalaVersion := "2.13.10"
libraryDependencies ++= Seq(
"org.scala-lang" % "scala-reflect" % scalaVersion.value,
"org.scalatest" %% "scalatest" % "3.2.15" % Test
)
ThisBuild / organization := "io.github.krzys9876"
ThisBuild / organizationName := "krzys9876"
ThisBuild / organizationHomepage := Some(url("https://github.com/krzys9876"))
ThisBuild / scmInfo := Some(
ScmInfo(
url("https://github.com/krzys9876/command-line-reader"),
"scm:[email protected]:krzys9876/command-line-reader.git"))
ThisBuild / developers := List(
Developer(
id = "krzys9876",
name = "Krzysztof Ruta",
email = "[email protected]",
url = url("https://github.com/krzys9876")))
ThisBuild / description := "Read command line arguments as strongly typed class fields."
ThisBuild / licenses := List("MIT" -> new URL("https://opensource.org/license/mit/"))
ThisBuild / homepage := Some(url("https://github.com/krzys9876/command-line-reader"))
// Remove all additional repository other than Maven Central from POM
ThisBuild / pomIncludeRepository := { _ => false }
ThisBuild / publishTo := {
val nexus = "https://s01.oss.sonatype.org/"
if (isSnapshot.value) Some("snapshots" at nexus + "content/repositories/snapshots")
else Some("releases" at nexus + "service/local/staging/deploy/maven2")
}
ThisBuild / publishMavenStyle := true