Skip to content

Commit

Permalink
Publishing settings
Browse files Browse the repository at this point in the history
  • Loading branch information
alexarchambault committed Feb 16, 2015
1 parent 463470e commit 5ecf7d0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions project/ArtifactAppBuild.scala
Expand Up @@ -31,6 +31,14 @@ object ArtifactAppBuild extends Build {
<url>https://github.com/alexarchambault</url>
</developer>
</developers>
},
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)
case _ =>
Credentials(Path.userHome / ".ivy2" / ".credentials")
}
}
)

Expand Down

0 comments on commit 5ecf7d0

Please sign in to comment.