Clean up dead publishing repository config and credentials in subproject build files
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 78/100
- Issue type
- Refactor
- Clarity
- Clearly specified
- Activity status
- Stale
- Tech stack
- java
- Domain
- build-system
Research direction
Start with the publishing.repositories.maven blocks in agent/build.gradle and bootstrap-api/build.gradle, then compare them with the root build.gradle nexus-publish-plugin configuration and the Makefile publish commands. Remove the unused repository and credential lookups from both subprojects, and verify that the documented publishToSonatype flow remains the configured release path.
Written by the indexing model from the issue text.
Description
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.
- Dominant language
- Java
- Stars
- 125
- Forks
- 48
- Avg merge
- 1h 8m
- Merged PRs (30d)
- 1
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from grafana/pyroscope-java
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
grafana/pyroscope-java#368 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 58/100
grafana/pyroscope-java#360 ·
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
grafana/pyroscope-java#283 ·
-
grafana/pyroscope-java#250 · 1 comment · 1 assignee ·
-
Difficulty 5/5 Over a week Newbie friendliness 30/100
grafana/pyroscope-java#237 · 2 comments ·
All issues in grafana/pyroscope-java
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
infinispan/infinispan#18150 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
untriaged
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
opensearch-project/k-NN#3597 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100