-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.sbt
44 lines (39 loc) · 1.54 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
import scala.collection.Seq
addCommandAlias("fmt", "all root/scalafmtSbt root/scalafmtAll")
addCommandAlias("fmtCheck", "all root/scalafmtSbtCheck root/scalafmtCheckAll")
val versions = new {
val scala = "2.12.19"
val sonatypeCentralClient = "0.3.0"
val sttp = "4.0.0-M16"
}
publishTo := sonatypeCentralPublishToBundle.value
inThisBuild {
Seq(
scalaVersion := versions.scala,
homepage := Some(url("https://github.com/lumidion/sbt-sonatype-central")),
licenses := List("Apache-2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0")),
developers := List(
Developer(
id = "andrapyre",
name = "David Doyle",
email = "david@lumidion.com",
url = url("https://www.lumidion.com/about")
)
)
)
}
lazy val root = (project in file("."))
.enablePlugins(SbtPlugin)
.settings(
organization := "com.lumidion",
name := "sbt-sonatype-central",
sbtPlugin := true,
scalacOptions ++= Seq("-Ywarn-unused-import", "-Xfatal-warnings", "-deprecation"),
sbtPluginPublishLegacyMavenStyle := false,
libraryDependencies ++= Seq(
"com.lumidion" %% "sonatype-central-client-sttp-core" % versions.sonatypeCentralClient,
"com.lumidion" %% "sonatype-central-client-upickle" % versions.sonatypeCentralClient,
"com.softwaremill.sttp.client4" %% "slf4j-backend" % versions.sttp,
"com.softwaremill.sttp.client4" %% "upickle" % versions.sttp
)
)