Skip to content

Commit d779579

Browse files
committed
fiddling with travis build
1 parent f607e1a commit d779579

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

publish.sbt

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,9 @@ pomExtra in Global := {
4040
</developers>
4141
}
4242

43-
(for {
43+
credentials ++= (for {
4444
username <- Option(System.getenv().get("SONATYPE_USERNAME"))
4545
password <- Option(System.getenv().get("SONATYPE_PASSWORD"))
46-
} yield
47-
credentials += Credentials(
48-
"Sonatype Nexus Repository Manager",
49-
"oss.sonatype.org",
50-
username,
51-
password)
52-
).getOrElse(credentials ++= Seq())
46+
} yield Credentials("Sonatype Nexus Repository Manager", "oss.sonatype.org", username, password)).toSeq
5347

5448
// NOTE: sonatypeRelease must be run explicitly, after `sbt release`

0 commit comments

Comments
 (0)