Skip to content

Reduce unnecessary Maven repository lookups - #288

Merged
BenCodez merged 1 commit into
masterfrom
build/restrict-maven-repositories
Aug 23, 2026
Merged

BenCodez merged 1 commit into
masterfrom
build/restrict-maven-repositories

Conversation

@BenCodez

Copy link
Copy Markdown
Owner

Summary

  • add real Maven Central explicitly for normal release dependencies
  • remove the legacy oss.sonatype.org BungeeCord snapshot repository
  • make the Spigot repository snapshot-only
  • disable snapshot resolution on PlaceholderAPI, JitPack, CodeMC, OpenCollab, and NickUC repositories
  • keep BenCodez snapshot resolution enabled with updatePolicy=always for simpleapi

Why

VotingPlugin builds stalled in both Jenkins and GitHub Actions while Maven waited on legacy/unrelated repositories. The fix in VotingPlugin showed that normal release dependencies resolve reliably when Maven Central is used first and custom repositories are restricted to the artifact types they actually serve.

AdvancedCore is especially important because its published POM is consumed transitively by downstream plugins. Its current POM still exports the old oss.sonatype.org snapshot repository and permits unrelated repositories to participate in snapshot resolution. This change removes that legacy path and narrows repository participation without changing dependency versions or runtime behavior.

@BenCodez
BenCodez merged commit 27d824a into master Aug 23, 2026
4 checks passed
@BenCodez
BenCodez deleted the build/restrict-maven-repositories branch August 23, 2026 19:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant