Repository navigation
build: 建立发版机制(CI + Release workflow + 版本管理) - #5
Merged
Merged
Conversation
- settings 插件 agent-SNAPSHOT -> 2.0.0-m2(已发布到 Gradle Plugin Portal; agent-SNAPSHOT 仅存在于本地 mavenLocal,CI 无法解析) - ihub-migrate 0.2.4 -> 0.2.5 - 根构建显式版本 allprojects 0.1.0(应用版本,对应 git tag v0.1.0) - 新增 gradle-build.yml:push/PR 触发 build + test(JDK 21,此前仓库零 CI) - 新增 gradle-release.yml:release published 触发 bootJar 附到 GitHub Release (应用仓库不发布 Maven Central)
There was a problem hiding this comment.
Pull request overview
该 PR 为 ihub-agents 仓库补齐 CI 与发版闭环:将 settings 插件从本地 SNAPSHOT 切到可在 CI 解析的已发布版本,并新增 GitHub Actions 工作流用于持续构建/测试与 Release 附件产物上传,同时在构建中引入应用版本号以对齐 git tag / release。
Changes:
- 将
pub.ihub.plugin.ihub-settings从agent-SNAPSHOT更新到2.0.0-m2,消除 CI 无法解析本地依赖的问题 - 依赖版本更新:
ihub-migrate0.2.4 → 0.2.5 - 新增 CI 工作流(build/test)与 release 工作流(bootJar 并上传到 GitHub Release),并在根构建设置
allprojects版本
Reviewed changes
Copilot reviewed 4 out of 5 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| settings.gradle.kts | settings 插件版本切换到可发布版本,支持 CI 环境解析 |
| gradle/libs.versions.toml | 升级 ihub-migrate 版本以匹配新的基线修复 |
| build.gradle.kts | 在根构建设置应用版本号以对齐 tag/release 产物命名 |
| .github/workflows/gradle-build.yml | 新增 push/PR 的构建与测试工作流(含 runner hardening) |
| .github/workflows/gradle-release.yml | 新增 release published 触发的 bootJar 构建与 Release 附件上传 |
Suppressed comments (1)
.github/workflows/gradle-build.yml:52
- 同上:
actions/setup-java建议使用distribution: temurin替代adopt。
uses: actions/setup-java@b6effb05e454b25005698d916606bdc6ffcbf961 # v5.7.0
with:
java-version: '21'
distribution: 'adopt'
cache: 'gradle'
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Comment on lines
+2
to
+4
| on: | ||
| release: | ||
| types: published |
Comment on lines
+31
to
+35
| - name: Build with Gradle | ||
| uses: gradle/gradle-build-action@ac2d340dc04d9e1113182899e983b5400c17cda1 # v2.11.0 | ||
| with: | ||
| arguments: build --scan | ||
|
|
Comment on lines
+23
to
+26
| with: | ||
| java-version: '21' | ||
| distribution: 'adopt' | ||
| cache: 'gradle' |
Comment on lines
+23
to
+26
| with: | ||
| java-version: '21' | ||
| distribution: 'adopt' | ||
| cache: 'gradle' |
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.
变更概要
agents 仓库此前零 CI、零 tag、零 release,且 settings 插件引用仅存在于本地 mavenLocal 的
agent-SNAPSHOT——CI 环境根本无法解析。本 PR 建立完整发版机制。变更内容
agent-SNAPSHOT→2.0.0-m2(已发布到 Gradle Plugin Portal;ihub-settings 不在 Maven Central,仅 Portal)ihub-migrate0.2.4 → 0.2.5(Java 17 基线修复版)allprojects { version = "0.1.0" }(应用版本,对应 git tagv0.1.0;bootJar 产物mcp-server-0.1.0.jar)bootJar→ 附到 GitHub Release(应用仓库不发布 Maven Central)发版流程(合并后)
gh release create v0.1.0 --target mainmcp-server-0.1.0.jar(约 34 MB 可执行 fat jar)build.gradle.kts版本 → PR 合并 → tag/release本地验证
./gradlew build✓(2.0.0-m2 settings + 0.2.5 migrate 兼容)./gradlew :mcp-server:bootJar✓ 产物名验证