Skip to content

Replace compileOnly with implementation for test visibility#12841

Merged
lynxplay merged 2 commits into
PaperMC:mainfrom
vjh0107:patch-1
Jul 17, 2025
Merged

Replace compileOnly with implementation for test visibility#12841
lynxplay merged 2 commits into
PaperMC:mainfrom
vjh0107:patch-1

Conversation

@vjh0107
Copy link
Copy Markdown
Contributor

@vjh0107 vjh0107 commented Jul 13, 2025

While writing tests for MavenLibraryResolver, it was discovered that the Paper API's transitive Maven resolver dependencies were not available at runtime.
This was due to maven-resolver-connector-basic and maven-resolver-transport-http being declared with the compileOnly.
Screenshot 2025-07-13 at 22 36 47

@vjh0107 vjh0107 requested a review from a team as a code owner July 13, 2025 13:37
@github-project-automation github-project-automation Bot moved this to Awaiting review in Paper PR Queue Jul 13, 2025
@github-project-automation github-project-automation Bot moved this from Awaiting review to Awaiting final testing in Paper PR Queue Jul 13, 2025
@lynxplay
Copy link
Copy Markdown
Contributor

We should be able to drop the runtimeOnly definitions in the server then (as we are currently duplicating the definition there to actually include the library)

@lynxplay lynxplay merged commit 6fb36e3 into PaperMC:main Jul 17, 2025
4 checks passed
@github-project-automation github-project-automation Bot moved this from Awaiting final testing to Merged in Paper PR Queue Jul 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Merged

Development

Successfully merging this pull request may close these issues.

4 participants