-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
94e451e
commit f57f0b4
Showing
3 changed files
with
12 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,32 +16,15 @@ inThisBuild( | |
) | ||
), | ||
developers := List( | ||
Developer("jonas", "Jonas Fonseca", "[email protected]", url("https://github.com/jonas")) | ||
), | ||
// Workaround NPE when publishing: https://github.com/sbt/sbt/issues/3519 | ||
updateOptions := updateOptions.value.withGigahorse(false), | ||
publishMavenStyle := true, | ||
Test / publishArtifact := false, | ||
pomIncludeRepository := { _ => false }, | ||
publishTo := { | ||
val nexus = "https://oss.sonatype.org/" | ||
if (isSnapshot.value) | ||
Some("snapshots" at nexus + "content/repositories/snapshots") | ||
else | ||
Some("releases" at nexus + "service/local/staging/deploy/maven2") | ||
}, | ||
credentials ++= ( | ||
for { | ||
username <- Option(System.getenv().get("SONATYPE_USERNAME")) | ||
password <- Option(System.getenv().get("SONATYPE_PASSWORD")) | ||
} yield Credentials( | ||
"Sonatype Nexus Repository Manager", | ||
"oss.sonatype.org", | ||
username, | ||
password | ||
Developer("jonas", "Jonas Fonseca", "[email protected]", url("https://github.com/jonas")), | ||
Developer( | ||
"sbt-paradox-material-theme", | ||
"Sbt Paradox Material Theme Contributors", | ||
"", | ||
url("https://github.com/sbt/sbt-multi-jvm/graphs/contributors") | ||
) | ||
).toSeq, | ||
versionWithGit, | ||
), | ||
dynverSonatypeSnapshots := true, | ||
git.useGitDescribe := true, | ||
git.remoteRepo := s"[email protected]:${repo.path}.git" | ||
) | ||
|