-
Notifications
You must be signed in to change notification settings - Fork 5
/
publish.sbt
28 lines (20 loc) · 869 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
import xerial.sbt.Sonatype._
publishMavenStyle := true
sonatypeProfileName := "com.github.gekomad"
sonatypeProjectHosting := Some(GitHubHosting(user = "gekomad", repository = "itto-csv", email = "giuseppe.cannella@gmail.com"))
developers := List(
Developer(id = "gekomad", name = "Giuseppe", email = "giuseppe.cannella@gmail.com", url = url("https://github.com/gekomad"))
)
licenses := Seq("APL2" -> url("http://www.apache.org/licenses/LICENSE-2.0.txt"))
publishConfiguration := publishConfiguration.value.withOverwrite(true)
sonatypeLogLevel := "DEBUG"
//sonatype
publishTo := sonatypePublishToBundle.value
logLevel := Level.Debug
publishTo := {
val nexus = "https://oss.sonatype.org/"
if (isSnapshot.value)
Some("snapshots".at(nexus + "content/repositories/snapshots/"))
else
Some("releases".at(nexus + "content/repositories/releases/"))
}