Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
fixed the section/chapter notation
  • Loading branch information
pnerg committed Sep 13, 2017
1 parent 9cf7428 commit d562e8d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Expand Up @@ -4,7 +4,7 @@ Plugin for managing settings needed for SBT publish.
It can be very cumbersome to configure a _build.sbt_ file properly if one wishes to publish the artifact to some repository (e.g. Nexus, Artifactory).
This plugin provides help for that configuration.

###Credentials
### Credentials
In order to be able to publish to any repository it generally requires you to provide credentials to that repository.
Traditionally sbt uses the _~/.ivy2/.credentials_ file for that.
It however requires some manual setup in the build.sbt file.
Expand Down Expand Up @@ -37,7 +37,7 @@ import org.dmonix.sbt.CredentialsSettings._
credentials ++= publishCredentials
```

###Publish to Maven central
### Publish to Maven central
If you're like me and publish artifacts to [Maven Central](https://oss.sonatype.org) then you might want to use the _MavenCentralSettings_ utility to automatically configure the URLs where to publish your binaries.
Adding this to your _build.sbt_ file will automatically configure the publish path.
In fact it takes into account if it's a _-snapshot_ or fixed version release. you want to publish.
Expand All @@ -50,10 +50,10 @@ publishTo <<= version {publishURL(_)}
```
Refer to the above _.credentials_ file for an example on how the credentials for Maven Central realm are configured.

###Live Example
### Live Example
Check out the [build.sbt](../master/build.sbt) for this project to see the usage of the plugin.

###Installing the plugin
### Installing the plugin
Simply add this to the _plugins.sbt_ file:
```scala
addSbtPlugin("org.dmonix.sbt" % "sbt-publish-settings-plugin" % "0.5")
Expand Down

0 comments on commit d562e8d

Please sign in to comment.