mirror of https://github.com/alibaba/fastjson2.git
1.3 KiB
1.3 KiB
FASTJSON2发布操作说明
FASTJSON2发布到Maven中央库的操作过程/CheckList。
0. 前置准备与配置
在Maven的settting.xml中配置https://central.sonatype.com账号:
<servers>
<server>
<id>central</id>
<username>__YOUR_USERNAME__</username>
<password>__YOUR_PASSWORD__</password>
</server>
</servers>
更多发布操作说明(如用于GPG签名的GPG安装与配置),参见:
- Maven Central Portal Getting Started https://central.sonatype.org/publish/publish-portal-guide/
- Maven Central Portal Publishing By Using the Maven Plugin https://central.sonatype.org/publish/publish-portal-maven/
发布过程与发布文件的查看地址:
- Maven Central Portal 的发布控制台
https://central.sonatype.com - Maven中央库的文件查看
https://repo1.maven.org/maven2/com/alibaba/fastjson2/
1. 发布操作
-
如果发布正式版本,先确认版本号,去掉
SNAPSHOT,如2.x.y。 -
更新版本操作可以通过脚本
scripts/bump_fastjson2_version来统一完成。scripts/bump_fastjson2_version 2.x.y -
在工程根目录,执行发布
./mvnw clean && ./mvnw deploy -DperformRelease