-
Notifications
You must be signed in to change notification settings - Fork 3
/
publish.sbt
32 lines (28 loc) · 995 Bytes
/
publish.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
ThisBuild / pomIncludeRepository := { _ => false }
ThisBuild / publishTo := {
val nexus = "https://oss.sonatype.org/"
if (isSnapshot.value) Some("snapshots" at nexus + "content/repositories/snapshots")
else Some("releases" at nexus + "service/local/staging/deploy/maven2")
}
pomExtra :=
<licenses>
<license>
<name>Apache 2</name>
<url>https://www.apache.org/licenses/LICENSE-2.0.txt</url>
<distribution>repo</distribution>
</license>
</licenses>
<developers>
<developer>
<id>gekomad</id>
<name>Giuseppe Cannella</name>
<url>https://github.com/gekomad</url>
</developer>
</developers>
<scm>
<url>https://github.com/gekomad/scala-compress</url>
<connection>scm:git:https://github.com/gekomad/scala-compress</connection>
</scm>
<url>https://github.com/gekomad/scala-compress</url>
ThisBuild / publishMavenStyle := true
publishConfiguration := publishConfiguration.value.withOverwrite(true)