Jump to content

Recommended Posts

Posted (edited)

I'm implementing a soft dependency (gradle calls it module) in build.gradle. For instance, I looked at another mod's source that adds content associated with the quark mod:

dependencies {
    implementation fg.deobf("curse.maven:quark:3024740")
}

However, I don't know what the number represents and where to find it for other mods. It doesn't seem related to the version number.

Edited by urbanxx001
Posted (edited)

Thanks. compile and deobfCompile are deprecated though. Since that link doesn't say where to find the fileID, for anyone else lost, it's part of the URL for it's location on curseforge. Details here.

Edited by urbanxx001
Posted

So after attempting to refresh dependencies, the library isn't downloaded, even though the implementation and repository lines are correct. The error:

Could not find curse.maven:quark:3024740_mapped_snapshot_20200514-1.16.
Searched in the following locations:
  - https://files.minecraftforge.net/maven/curse/maven/quark/3024740_mapped_snapshot_20200514-1.16/quark-3024740_mapped_snapshot_20200514-1.16.pom
  - https://files.minecraftforge.net/maven/curse/maven/quark/3024740_mapped_snapshot_20200514-1.16/quark-3024740_mapped_snapshot_20200514-1.16.jar
  - file:/C:/Users/Name/.gradle/caches/forge_gradle/bundeled_repo/curse/maven/quark/3024740_mapped_snapshot_20200514-1.16/quark-3024740_mapped_snapshot_20200514-1.16.pom
  - file:/C:/Users/Name/.gradle/caches/forge_gradle/bundeled_repo/curse/maven/quark/3024740_mapped_snapshot_20200514-1.16/quark-3024740_mapped_snapshot_20200514-1.16.jar
  - https://libraries.minecraft.net/curse/maven/quark/3024740_mapped_snapshot_20200514-1.16/quark-3024740_mapped_snapshot_20200514-1.16.jar
  - https://repo.maven.apache.org/maven2/curse/maven/quark/3024740_mapped_snapshot_20200514-1.16/quark-3024740_mapped_snapshot_20200514-1.16.pom
  - https://repo.maven.apache.org/maven2/curse/maven/quark/3024740_mapped_snapshot_20200514-1.16/quark-3024740_mapped_snapshot_20200514-1.16.jar
Posted (edited)

Full gradle:

  Reveal hidden contents

 

Edited by urbanxx001
Posted (edited)

A new latest.log isn't generated in run/logs, if you're referring to the separate file from the console log. Or I misunderstand. 

Edit: Everything is resolved after adding the cursemaven plugin:

plugins {
    id "com.wynprice.cursemaven" version "2.1.1"
}

Thank you anyway though!

Edited by urbanxx001

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.