-
Notifications
You must be signed in to change notification settings - Fork 18
/
sonatype.sbt
36 lines (32 loc) · 1.45 KB
/
sonatype.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
import java.net.URL
import xerial.sbt.Sonatype.GitHubHosting
ThisBuild / sonatypeProfileName := "com.github.andyglow"
ThisBuild / licenses := Seq(("Apache-2.0", url("http://www.apache.org/licenses/LICENSE-2.0")))
ThisBuild / sonatypeProjectHosting := Some(GitHubHosting("andyglow", "websocket-scala-client", "[email protected]"))
ThisBuild / organization := "com.github.andyglow"
ThisBuild / homepage := Some(new URL("http://github.com/andyglow/websocket-scala-client"))
ThisBuild / startYear := Some(2019)
ThisBuild / organizationName := "andyglow"
ThisBuild / scmInfo := Some(
ScmInfo(
url("https://github.com/andyglow/websocket-scala-client"),
"scm:[email protected]:andyglow/websocket-scala-client.git"
)
)
ThisBuild / developers := List(
Developer(
id = "andyglow",
name = "Andriy Onyshchuk",
email = "[email protected]",
url = url("https://ua.linkedin.com/in/andyglow")
)
)
resolvers ++= Seq("snapshots", "releases").flatMap(Resolver.sonatypeOssRepos)
// use `.withRank(KeyRanks.Invisible)` to mute Unnecessary Warning
(ThisBuild / publishMavenStyle).withRank(KeyRanks.Invisible) := true
// https://github.com/xerial/sbt-sonatype#buildsbt
// uses staging directory for release versions
// and publishes directly to sonatype servers for snapshots
// use `sonatypeBundleRelease` for releases
// and `sonatypeReleaseAll` for snapshots
ThisBuild / publishTo := sonatypePublishToBundle.value