Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
C claude-plugin
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Package Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • devtool
  • claude-plugin
  • Merge requests
  • !13

Merged
Created Aug 14, 2026 by yc.chuang@YC.ChuangOwner

feat(publish-nexus): 新增 publish-nexus plugin(發佈+從 POM 推導驗證)

  • Overview 0
  • Commits 1
  • Changes 8

新增 publish-nexus plugin:把 Gradle 專案發佈到內部 Nexus 的機制與發佈後驗證 獨立成可安裝的 plugin,取代各專案各自手寫一份的做法。

核心原則:驗證清單一律從 Gradle 產生的 /build/publications//pom-default.xml 推導,不手寫。手寫清單在寫下的那天是對的,之後新增模組就會靜悄悄漏檢, 還回報「全部 OK」。

  • skills/publish-nexus/SKILL.md:snapshot/release 路由、configuration-cache 報告是預期行為(不要加 --no-configuration-cache)、release 沒有 per-version maven-metadata.xml 的假 MISSING、mavenLocal 遮蔽陷阱、以及本 skill 刻意 不知道而該由專案自身 skill 提供的事實。
  • scripts/verify_publish.py:純 stdlib,推導座標 + 從建置檔探測 repo URL + 依版號後綴選 snapshot/release + ~/.m2 較舊複本告警;--dry-run/--json 等旗標。 憑證只從 NEXUS_USER / NEXUS_PASSWORD 讀,不接受以參數傳入密碼。
  • 註冊到 marketplace.json(metadata.version 2.1.0 → 2.2.0)、dev.js KNOWN_PLUGINS/PLUGIN_HINTS、README 與 CLAUDE.md 的 plugin 表。
  • 補 .gitignore:pycache 等本機產物先前是裸露的 untracked。

於 Core monorepo 實測:推導出 14 個座標(含 org.hn2.agent-docs plugin marker), 對 maven-hn2-snapshot 驗證全數 OK。

Co-Authored-By: Claude Opus 5 (1M context) noreply@anthropic.com

Assignee
Assign to
Reviewer
Request review from
None
Milestone
None
Assign milestone
Time tracking
Source branch: feat/publish-nexus-plugin