Skip to content
This repository has been archived by the owner on Jun 24, 2024. It is now read-only.

Commit

Permalink
sbt credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
bbstilson committed Dec 2, 2023
1 parent 7d51185 commit 5b010fe
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,11 @@ object CodeArtifactPlugin extends AutoPlugin {
codeArtifactPublish := dynamicallyPublish.value,
codeArtifactRepo := CodeArtifactRepo.fromUrl(codeArtifactUrl.value),
codeArtifactToken := sys.env
.get("CODEARTIFACT_AUTH_TOKEN")
.orElse(
Credentials.loadCredentials(Path.userHome / ".sbt" / "credentials").toOption.map(_.passwd)
)
.getOrElse(
"CODEARTIFACT_AUTH_TOKEN",
CodeArtifact.getAuthToken(codeArtifactRepo.value)
),
codeArtifactConnectTimeout := CodeArtifact.Defaults.CONNECT_TIMEOUT,
Expand Down

0 comments on commit 5b010fe

Please sign in to comment.