PaperMC / PaperMC/paperweight

userdev is not fully compatible with central repository declaration

Open
#288 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

status: accepted
Dominant language
Kotlin
Stars
317
Forks
76
Avg merge
1d 12h
Merged PRs (30d)
5

Description

When applying userdev to a project with a dependencyResolutionManagement { repositories { ... } } block, these will be discarded and only maven central and the paper repo will be added. MRE: https://github.com/radstevee/paperweight-288-mre

pw-mre:main: Could not find net.radstevee.packed:packed-core:1.0.3.
Searched in the following locations:
  - https://repo.maven.apache.org/maven2/net/radstevee/packed/packed-core/1.0.3/packed-core-1.0.3.pom
  - https://repo.papermc.io/repository/maven-public/net/radstevee/packed/packed-core/1.0.3/packed-core-1.0.3.pom
Required by:
    root project :

Possible solution:
 - Declare repository providing the artifact, see the documentation at https://docs.gradle.org/current/userguide/declaring_repositories.html

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the repository-resolution failure with the linked paperweight-288-mre project and inspect the userdev handling of Gradle's dependencyResolutionManagement repositories. Trace where the declared repositories are replaced, then verify that the project's repositories remain available alongside the required Paper repository and that the MRE resolves packed-core:1.0.3.

Written by the indexing model from the issue text.

Assessment

Tech stack
kotlin
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.