feat(pom): add Maven Central publishing profile - #5
Merged
Conversation
## 目的 让 ark-runtime Java SDK 可以发布到 Maven Central(`com.volcengine:ark-runtime`),与 Python 侧的 PyPI 自动发布链路对齐。 ## 改动(pom.xml) 1. **`<scm>` + `<developers>`**:Maven Central 上传的硬性校验项(老 SDK volcengine-java-sdk 同款写法) 2. **`public` profile**(仅发布时激活,日常构建不受影响): - `distributionManagement` → `ossrh-staging-api.central.sonatype.com`(OSSRH 兼容端点) - `maven-javadoc-plugin`:attach-javadocs(Central 要求 javadoc jar;sources jar 已有) - `maven-gpg-plugin` 3.2.7:工件签名(loopback) - `central-publishing-maven-plugin` 0.8.0:`publishingServerId=central`、`tokenAuth`、`autoPublish` 配置逐项对照 volcengine/volcengine-java-sdk 已验证的发布设置(2.0.22 在用)。 ## 配套(不在本 MR) - ark-apis 侧新增 `sdk-templates/java/.github/workflows/release.yml`(tag 触发,setup-java 注入 Central token + GPG key,`mvn deploy -Ppublic`)——与 Python 的 release.yml 同构 - GitHub 仓库 secrets:`OSSRH_USERNAME` / `OSSRH_TOKEN`(Maven 账号管理 wiki 的共享 Sonatype 账号,ark 团队已登记)、`GPG_PRIVATE_KEY` / `GPG_PASSPHRASE`(ark 专用签名密钥,公钥已传 keyserver) ## 合入后 下一个 sync 版本(含 release.yml 的那次)tag 触发后自动发布到 Central,`repo.maven.apache.org` 可查。 See merge request: !80 Sync-Source-Commit: 27987d07d5f6fd250f8deca59b5cdd376f8ea105 Ark-APIs-Commit: 59c90de5ac837a87443bd463e4500f6ef6eceda6 Hand-Written-Reason: Manual pom change (Maven Central publishing profile + scm metadata normalization). No ark-apis regeneration involved; attributed to the same ark-apis snapshot as parent f35d4f9. Release-Version: 0.2.0
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.
Hand-written change from the internal SDK repository — not produced by
make vendor.feat(pom): add Maven Central publishing profile59c90de5ac837a87443bd463e4500f6ef6eceda6Sync-Source-Commit: 27987d07d5f6fd250f8deca59b5cdd376f8ea105
Ark-APIs-Commit: 59c90de5ac837a87443bd463e4500f6ef6eceda6
Hand-Written-Reason: Manual pom change (Maven Central publishing profile + scm metadata normalization). No ark-apis regeneration involved; attributed to the same ark-apis snapshot as parent f35d4f9.
Release-Version: 0.2.0
Created by ark-hand.