Repository navigation
build: adopt stream-sdk release workflow and Central packaging - #4
Merged
haofeng0705 merged 2 commits intoSep 21, 2026
Merged
Conversation
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
haofeng0705
requested changes
Sep 21, 2026
haofeng0705
left a comment
Contributor
There was a problem hiding this comment.
发布工作流整体结构正确,但发布命令未激活 release profile:
pom.xml中central-publishing-maven-plugin、maven-gpg-plugin、source/javadoc 插件都放在<profile><id>release</id></profile>里,且未设置<activeByDefault>true</activeByDefault>或属性触发。.github/workflows/release.yml的Deploy to Sonatype Central步骤执行的是mvn deploy --settings settings.xml -DskipTests,没有-P release,因此不会执行 GPG 签名、source/javadoc 打包,Central Portal 会拒绝发布。
请修改:在发布路径(release 事件)的 deploy 命令中加入 -P release,例如:
mvn -P release clean deploy --settings settings.xml -DskipTests
build 步骤的 mvn clean install 可保持原样用于验证,但部署步骤必须带 -P release。
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Contributor
Author
|
已更新:
|
haofeng0705
approved these changes
Sep 21, 2026
haofeng0705
left a comment
Contributor
There was a problem hiding this comment.
复查通过:deploy 步骤已改为 mvn -P release clean deploy --settings settings.xml -DskipTests,release profile 将在发布时执行 GPG 签名与 source/javadoc 打包;Java 8/11/17 CI 全绿,可合入。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adopts the official
open-dingtalk/dingtalk-stream-sdk-javarelease workflow and Central packaging:<licenses>,<scm>,<developers>).releaseprofile withcentral-publishing-maven-plugin(0.9.0),maven-gpg-plugin(3.2.4),maven-source-plugin(3.3.1), andmaven-javadoc-plugin(3.6.3).settings.xmlmapping${env.MAVEN_USERNAME}and${env.MAVEN_PASSWORD}to thesonatypeserver.LICENSE(MIT)..github/workflows/release.ymlfor building, GPG signing, and publishing to Central Portal.Test plan
mvn clean compilepasses under Java 8.open-dingtalk/dingtalk-stream-sdk-java.