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
2
2
----------------
3
3
4
4
While developing, you may need do local publish. Run
5
- ``sbt publish-local ``.
5
+ ``sbt publishLocal ``.
6
6
Alternatively you can run ``sbt `` then from SBT command prompt run
7
- ``+ publish-local ``.
7
+ ``+ publishLocal ``.
8
8
9
9
To delete the local publish:
10
10
@@ -21,12 +21,12 @@ https://github.com/sbt/sbt.github.com/blob/gen-master/src/jekyll/using_sonatype.
21
21
1. Copy content of
22
22
dev/build.sbt.end to the end of build.sbt
23
23
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 ``.
26
26
3. Login at https://oss.sonatype.org/ and from "Staging Repositories" select the
27
27
newly published item, click "Close" then "Release".
28
28
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.
30
30
Otherwise there will be error:
31
31
32
32
::
Original file line number Diff line number Diff line change 1
1
2
- // Publish to Sonatype -------------------------------------------------------
2
+ // Publish to Sonatype
3
3
// https://github.com/sbt/sbt.github.com/blob/gen-master/src/jekyll/using_sonatype.md
4
4
5
- publishTo <<= (version) { version: String =>
5
+ publishTo := {
6
6
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")
9
9
}
10
10
11
11
publishMavenStyle := true
You can’t perform that action at this time.
0 commit comments