Clean up dead publishing repository config and credentials in subproject build files
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 78/100
- issue の種類
- リファクタリング
- 明瞭さ
- 明確に書かれている
- 活発さ
- 停滞
- 技術スタック
- java
- 領域
- build-system
調査の方向性
agent/build.gradle と bootstrap-api/build.gradle の publishing.repositories.maven ブロックから始め、root の build.gradle にある nexus-publish-plugin 設定および Makefile の publish コマンドと比較します。両方のサブプロジェクトから未使用のリポジトリ参照と認証情報参照を削除し、文書化されている publishToSonatype フローが引き続き設定済みの release パスであることを確認します。
索引モデルが issue の本文から書いたものです。
説明
Summary
Both agent/build.gradle and bootstrap-api/build.gradle (added in #293) contain a publishing.repositories.maven block that is never used during the actual release flow. This dead configuration includes hardcoded credential lookups and a legacy Sonatype URL.
Details
The actual publish path uses the root-level nexus-publish-plugin (io.github.gradle-nexus.publish-plugin), which creates its own publishToSonatype task targeting:
https://ossrh-staging-api.central.sonatype.com/service/local/
Credentials are passed via -PsonatypeUsername / -PsonatypePassword in the Makefile.
However, both subprojects define their own publishing.repositories.maven block pointing to a different, legacy URL:
https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/
with credentials sourced from nexusUsername / nexusPassword properties (which are never provided in the Makefile).
This config is dead code — it would only be invoked if someone ran ./gradlew publish directly instead of publishToSonatype, which is not the intended flow. Having it around is confusing and could cause mistakes if someone tries to publish manually.
Affected files
agent/build.gradle—publishing.repositoriesblock (lines ~93-101)bootstrap-api/build.gradle—publishing.repositoriesblock (added in #293)
Suggestion
Remove the publishing.repositories.maven block (and the dead nexusUsername/nexusPassword credential lookups) from both subproject build files. The nexus-publish-plugin in the root build.gradle handles repository configuration for the actual publish flow.
- 主要言語
- Java
- スター
- 125
- フォーク
- 48
- 平均マージ
- 1時間 8分
- マージ済み PR(30日)
- 1
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
grafana/pyroscope-java のほかの issue
-
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
grafana/pyroscope-java#368 · コメント 1 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 58/100
grafana/pyroscope-java#360 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
grafana/pyroscope-java#283 ·
-
grafana/pyroscope-java#250 · コメント 1 件 · 担当者 1 名 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 30/100
grafana/pyroscope-java#237 · コメント 2 件 ·
grafana/pyroscope-java の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
infinispan/infinispan#18150 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
-
untriaged
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
opensearch-project/k-NN#3597 ·
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100