Skip to content

Commit 638ed91

Browse files
committed
Add Sonatype credentials
1 parent bad9ae5 commit 638ed91

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

build.sbt

+11
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,17 @@ lazy val root: Project = project
3535
else
3636
Some("releases" at nexus + "service/local/staging/deploy/maven2")
3737
},
38+
credentials ++= {
39+
for {
40+
user <- sys.env.get("MAVEN_USER")
41+
password <- sys.env.get("MAVEN_PASSWORD")
42+
} yield Credentials(
43+
realm = "Sonatype Nexus Repository Manager",
44+
host = "oss.sonatype.org",
45+
userName = user,
46+
passwd = password
47+
)
48+
}.toSeq,
3849
pomExtra := (
3950
<developers>
4051
<developer>

0 commit comments

Comments
 (0)