Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

loom.splitEnvironmentSourceSets() breaks inheritance for non-client & non-main classpaths #25

Open
Ampflower opened this issue Jan 22, 2023 · 0 comments

Comments

@Ampflower
Copy link

Expected:

For testRuntimeClasspath and testCompileClasspath to correctly inherit runtimeClasspath and compileClasspath respectively when loom.splitEnvironmentSourceSets() is called.

Actual:

testRuntimeClasspath and testCompileClasspath fail to inherit the parent classpaths, only getting the modRuntimeClasspathMapped and modCompileClasspathMapped configuration. testAnnotationProcessor is the only configuration that correctly inherits from annotationProcessor.

Steps to Reproduce:

  1. Call loom.splitEnvironmentSourceSets() in your standard build.gradle for modding.
  2. Run ./gradlew dependencies

Problems this causes:

  • The inability to call Minecraft's dependencies and Minecraft itself within the test source sets.
  • mod* taking priority on any dependencies that Minecraft normally declares.
    • This was seen via the Quilt Loader 0.18.1 betas on QFAPI, which seems to be able to correctly resolve GSON despite it not being present in testmodCompileClasspath on Quilt Loader 0.17.10?
  • Manually defined configurations also can fail to inherit from the main classpaths, even when explicitly called.
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

No branches or pull requests

1 participant