File tree Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -2,9 +2,9 @@ Publish to local
22----------------
33
44While developing, you may need do local publish. Run
5- ``sbt publish-local ``.
5+ ``sbt publishLocal ``.
66Alternatively you can run ``sbt `` then from SBT command prompt run
7- ``+ publish-local ``.
7+ ``+ publishLocal ``.
88
99To delete the local publish:
1010
@@ -21,12 +21,12 @@ https://github.com/sbt/sbt.github.com/blob/gen-master/src/jekyll/using_sonatype.
21211. Copy content of
2222 dev/build.sbt.end to the end of build.sbt
2323 dev/plugins.sbt.end to the end of project/plugins.sbt
24- 2. Run ``sbt publish-signed ``. Alternatively you can run ``sbt `` then from SBT
25- command prompt run ``+ publish-signed ``.
24+ 2. Run ``sbt publishSigned ``. Alternatively you can run ``sbt `` then from SBT
25+ command prompt run ``+ publishSigned ``.
26263. Login at https://oss.sonatype.org/ and from "Staging Repositories" select the
2727 newly published item, click "Close" then "Release".
2828
29- This workflow is for others to easily do ``sbt publish-local `` without PGP key.
29+ This workflow is for others to easily do ``sbt publishLocal `` without PGP key.
3030Otherwise there will be error:
3131
3232::
Original file line number Diff line number Diff line change 11
2- // Publish to Sonatype -------------------------------------------------------
2+ // Publish to Sonatype
33// https://github.com/sbt/sbt.github.com/blob/gen-master/src/jekyll/using_sonatype.md
44
5- publishTo <<= (version) { version: String =>
5+ publishTo := {
66 val nexus = "https://oss.sonatype.org/"
7- if (version.trim.endsWith("SNAPSHOT")) Some("snapshots" at nexus + "content/repositories/snapshots")
8- else Some("releases" at nexus + "service/local/staging/deploy/maven2")
7+ if (version.value. trim.endsWith("SNAPSHOT")) Some("snapshots" at nexus + "content/repositories/snapshots")
8+ else Some("releases" at nexus + "service/local/staging/deploy/maven2")
99}
1010
1111publishMavenStyle := true
You can’t perform that action at this time.
0 commit comments