Minor adjustment of build config

This commit is contained in:
Alexandre Archambault 2016-04-17 22:08:04 +02:00
parent 5f6caefff6
commit bbe9ec5a21
No known key found for this signature in database
GPG Key ID: 14640A6839C263A9
1 changed files with 3 additions and 3 deletions

View File

@ -31,12 +31,12 @@ lazy val releaseSettings = Seq(
else
Some("releases" at nexus + "service/local/staging/deploy/maven2")
},
credentials += {
credentials ++= {
Seq("SONATYPE_USER", "SONATYPE_PASS").map(sys.env.get) match {
case Seq(Some(user), Some(pass)) =>
Credentials("Sonatype Nexus Repository Manager", "oss.sonatype.org", user, pass)
Seq(Credentials("Sonatype Nexus Repository Manager", "oss.sonatype.org", user, pass))
case _ =>
Credentials(Path.userHome / ".ivy2" / ".credentials")
Seq()
}
}
)