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

Fix runClient and runServer Gradle tasks #2673

Merged
merged 1 commit into from
Dec 18, 2017

Conversation

Xyxen
Copy link
Contributor

@Xyxen Xyxen commented Dec 16, 2017

compile dependencies are placed on the runtime classpath by Gradle. Because the compile configuration is set to extend from the provided config, all of those dependencies are put on the runtime classpath as well. That might be okay, except the set of dependencies certainly don't make up a functional modpack, so you end up with Forge spitting up dependency problems before you can reach the menu.

In this patch, provided is instead made a separate configuration, and explicitly added to ONLY the compile classpath of the main sourceset. This is what newer versions of ForgeGradle do, and it's also what's being done by setting dependencies to IDEA's "Provided" scope in the wiki's build instructions.

Resolves #2561 and resolves #2614.

Compile dependencies are placed on the runtime classpath by Gradle.
Because the compile configuration is set to extend from the provided
config, all of those dependencies are put on the runtime classpath as
well.

In this patch, provided is instead made a separate configuration, and
explicitly added to ONLY the compile classpath of the main sourceset.
@payonel
Copy link
Member

payonel commented Dec 17, 2017

can you make it so the dependencies for OpenComputers_main also import correctly? this seems to only fix OpenComputers_api

also, for 1.7.10 the _api and _main moduels are both pointing to the same output path: OpenComputers/build/classes/main and it has to be fixed manually.

@Xyxen
Copy link
Contributor Author

Xyxen commented Dec 17, 2017

This patch was only intended to fix running from the command line, but I'm happy to go further with it to fix IDEA project import/generation. I'll see what I can do.

@payonel
Copy link
Member

payonel commented Dec 18, 2017

if you find what is needed for the other fixes, i'd appreciate the PR for those things. Thanks

@payonel payonel merged commit fd9b815 into MightyPirates:master-MC1.7.10 Dec 18, 2017
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.

runClient gradle Task doesn't want to work. Unable to run oc from gradle
2 participants