Skip to content

Commit ea2ba0a

Browse files
committed
Update SBT commands
1 parent 7d2fbf2 commit ea2ba0a

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

dev/README.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ Publish to local
22
----------------
33

44
While developing, you may need do local publish. Run
5-
``sbt publish-local``.
5+
``sbt publishLocal``.
66
Alternatively you can run ``sbt`` then from SBT command prompt run
7-
``+ publish-local``.
7+
``+ publishLocal``.
88

99
To delete the local publish:
1010

@@ -21,12 +21,12 @@ https://github.com/sbt/sbt.github.com/blob/gen-master/src/jekyll/using_sonatype.
2121
1. 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``.
2626
3. 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.
3030
Otherwise there will be error:
3131

3232
::

dev/build.sbt.end

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
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

1111
publishMavenStyle := true

0 commit comments

Comments
 (0)