-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Publish to Sonatype / Maven Central (#21)
* Publish to sonatype / Maven Central * Update Travis to download sbt
- Loading branch information
Showing
4 changed files
with
29 additions
and
7 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
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// Your profile name of the sonatype account. The default is the same with the organization value | ||
sonatypeProfileName := "com.rallyhealth" | ||
|
||
// To sync with Maven central, you need to supply the following information: | ||
publishMavenStyle := true | ||
|
||
// publish to Maven Central | ||
ThisBuild / sonatypeCredentialHost := "s01.oss.sonatype.org" | ||
ThisBuild / publishTo := Some { | ||
if (isSnapshot.value) | ||
Resolver.url("Sonatype", url("https://s01.oss.sonatype.org/content/repositories/snapshots")) | ||
else | ||
Resolver.url("Sonatype", url("https://s01.oss.sonatype.org/content/repositories/releases")) | ||
} | ||
|
||
import xerial.sbt.Sonatype.GitHubHosting | ||
sonatypeProjectHosting := Some(GitHubHosting("rallyhealth", "sbt-git-versioning", "jeff.n.may@gmail.com")) |