You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+19-7Lines changed: 19 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -85,17 +85,18 @@ Here is a list of sbt commands for daily development:
85
85
> publishLocal # Install to local .ivy2 repository
86
86
> publishM2 # Install to local .m2 Maven repository
87
87
> publish # Publishing a snapshot version to the Sonatype repository
88
+
```
88
89
89
-
> release # Run the release procedure (set a new version, run tests, upload artifacts, then deploy to Sonatype)
90
+
### Publish to Sonatype (Maven Central)
90
91
91
-
# [optional] When you need to perform the individual release steps manually, use the following commands:
92
-
> publishSigned # Publish GPG signed artifacts to the Sonatype repository
93
-
> sonatypeBundleRelease # Publish to the Maven Central (It will be synched within less than 4 hours)
94
-
```
92
+
To publish a new version, you only need to add a new git tag and push it to GitHub. GitHub Action will deploy a new release version to Maven Central (Sonatype).
95
93
96
-
Once you run a release command, a new git tag v(version number) will be pushed to GitHub. GitHub Action will deploy a new release version to Maven Central (Sonatype).
94
+
```scala
95
+
$ git tag v0.x.y
96
+
$ git push origin v0.x.y
97
+
```
97
98
98
-
For publishing to Maven central using a local machine, msgpack-java uses [sbt-sonatype](https://github.com/xerial/sbt-sonatype) plugin. Set Sonatype account information (user name and password) in the global sbt settings. To protect your password, never include this file in your project.
99
+
If you need to publish to Maven central using a local machine, you need to configure [sbt-sonatype](https://github.com/xerial/sbt-sonatype) plugin. First set Sonatype account information (user name and password) in the global sbt settings. To protect your password, never include this file in your project.
0 commit comments