-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.sbt
42 lines (32 loc) · 1.44 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
import xerial.sbt.Sonatype._
lazy val scala_3_2 = "3.2.2"
lazy val scala_2_13 = "2.13.10"
lazy val scala_2_12 = "2.12.17"
lazy val supportedScalaVersions = List(scala_3_2, scala_2_13, scala_2_12)
// Set the default version for building
ThisBuild / scalaVersion := scala_2_13
// lazy val root = (project in file("."))
// .aggregate(optparse)
// .settings(
// name := "optparse root",
// publish / skip := true,
// crossScalaVersions := Nil,
// )
lazy val optparse = (project in file("."))
.settings(
name := "optparse",
description := "A simple but powerful Scala command line parser.",
version := "2.4-SNAPSHOT",
organization := "org.sellmerfud",
crossScalaVersions := supportedScalaVersions,
scalacOptions ++= Seq( "-deprecation", "-unchecked", "-feature" ),
libraryDependencies += "org.scalactic" %% "scalactic" % "3.2.15" % "test",
libraryDependencies += "org.scalatest" %% "scalatest" % "3.2.15" % "test",
ThisBuild / versionScheme := Some("semver-spec"),
credentials += Credentials(Path.userHome / ".sbt" / "pgp.credentials"),
publishMavenStyle := true,
Test / publishArtifact := false,
publishTo := sonatypePublishToBundle.value,
licenses := Seq("MIT License" -> url("http://www.opensource.org/licenses/MIT")),
sonatypeProjectHosting := Some(GitHubHosting("sellmerfud", "optparse", "[email protected]"))
)