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

Multiple subproject minecraft configurations are not supported #844

Open
mezz opened this issue Mar 22, 2022 · 1 comment
Open

Multiple subproject minecraft configurations are not supported #844

mezz opened this issue Mar 22, 2022 · 1 comment
Labels
bug Relates to or reports a bug in the codebase

Comments

@mezz
Copy link
Contributor

mezz commented Mar 22, 2022

Issue Source

from 17da7eb

Seems gradle/Artifactual only supports ONE custom repo at a time.
So everything is now added to a single wrapper repo.

Bug Description

When I tried setting up a gradle multi-project with subprojects Forge and ForgeApi, I had the same Minecraft version and mappings, but the Forge one was configured with ATs and the ForgeApi one was not. This led to a failure:

Execution failed for task ':ForgeApi:compileJava'.
> Could not resolve all files for configuration ':ForgeApi:compileClasspath'.
   > Could not find net.minecraftforge:forge:1.18.2-40.0.18_mapped_official_1.18.2.
     Required by:
         project :ForgeApi

Workaround

This issue is unlikely to be fixed because it's difficult and there is a known workaround.

The workaround is to apply the same ATs so that both minecraft configurations are identical. That way it still works even when ForgeGradle is using the "wrong" minecraft resource for the ForgeApi subproject.

@sciwhiz12 sciwhiz12 added the bug Relates to or reports a bug in the codebase label Mar 22, 2022
@heipiao233

This comment was marked as off-topic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Relates to or reports a bug in the codebase
Projects
None yet
Development

No branches or pull requests

3 participants