TehNut-Mods / HWYLA

A fork of Waila maintaining it for new MC versions
https://bitbucket.org/ProfMobius/waila
Other
119 stars 72 forks source link

nevermind without doucmentation and/or at least a simple example I'm lost and wasting my time I'll check back later #269

Closed frakier closed 4 years ago

frakier commented 4 years ago

Issue Description:

Trying to add support for your mod into a mod.

added... maven { url "https://maven.tehnut.info" } ...in repositories. also tried "http://tehnut.info/maven" since that is mentioned here as well added ... deobfCompile "mcp.mobius.waila:Hwyla:1.10.6-B67_1.14.4" ... in dependencies

Are there any instruction on this, am I leaving out anything?

What happens:

Could not find method deobfCompile() for arguments [mcp.mobius.waila:Hwyla:1.10.6-B67_1.14.4]

What you expected to happen:

not a crash at least, still new to some of this

Steps to reproduce:

  1. add the maven and dependency
  2. refresh gradle tasks
  3. check error in console

Affected Versions (Do not use "latest"):

Possible Conflicting Mods (Provide their version, as well)

none installed other than my code

frakier commented 4 years ago

changed "deobfCompile" to "deobf" and the tasks compiled, maybe I can find more information on how this will look for a mod that has implemented it.

looked at another mod for an example and now have in the build.gradle `repositories { maven { // HWYLA name 'tehnut' url 'https://maven.tehnut.info' } }

dependencies { minecraft "net.minecraftforge:forge:${project.game_version}-${project.forge_version}"

compileOnly fg.deobf("mcp.mobius.waila:Hwyla:1.10.6-B67_1.14.4:api")
runtimeOnly fg.deobf("mcp.mobius.waila:Hwyla:1.10.6-B67_1.14.4")

}`

tried multiple examples nothing seems to work end up with... https://maven.tehnut.info being used all over the place.

Moving on for now will check back when you get some documentation.