Jump to content

Recommended Posts

Posted

Not sure if this question goes here or not, well, here is the "problem"

 

Whenever I use the gradlew build on Forge 1.9 it creates 2 files, never happened on 1.7.10 where it always creates only 1.

 

What is the "xxx-sources" used for?

 

I have also see some 1.9 mods that come on a .zip file and ask for installation to drop both files on the Mods folder, isn't that "wrong"?

 

Thanks a lot.

Posted

The sources JAR is exactly what the name suggests: the source code of the mod; though it's actually the reobfuscated source (SRG names) rather than the original deobfuscated source (MCP names).

 

Source JARs are there to allow other projects that depend on yours to see your project's source code in the IDE. ForgeGradle allows you to add

deobfCompile

/

deobfProvided

dependencies (source code or compiled bytecode), these will be deobfuscated on disk from SRG names to the current project's MCP names.

 

Source JARs definitely shouldn't be required outside of the development environment. Any mod that asks you to install a source JAR is doing something wrong.

Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.