kord cache method doesn't exist
error https://sourceb.in/rxnUgPpdxO
gradle.build
can supply code but it's just a initializing Kord
which causing this so probably just a dependency version issue but i'm not sure since since the cache libraries are latest as of today on mvnrepository19 Replies
figured it out, turns ot 0.5.4 isn't the right version despite being the newest on mvnrepo, found a repo on the kord site that has 0.4.0 which does work
you shouldn't need to specify kord cache in your dependencies, kord brings in the right version transitively
i had class not found errors about kord cache so i included it and it seems to work
for more context, i'm writing a minecraft fabric mod that has discord <-> minecraft chat for the purpose of learning how fabric works and i had to include a good 30 libraries for it to work
the jetbrains libraries at the bottom were removed since it's included in the kotlin-language fabric mod if you use kotlin instead of java
a few might not be needed but i had to include basically all of them to avoid ClassNotFound, originally i thought i could just include the main libraries like ktor http client and kord core but it seems to not include transitive dependencies
not sure if that's a minecraft mod development thing or something i'm missing but i was told I would have to include every library that is required, i haven't done any java/kotlin in a few years but i don't remember including all dependencies, just the main libraries
(old image now but there is more libraries now)
That's quite an old version of Kord
And without a framework, too
Oh no, I misread, 14 is the current stable
wait what is that file?
is that a fabric file?
Yes
what does it do
It's just a gradle dependencies block
Or well, it’s just a grade file like https://github.com/FabricMC/fabric-example-mod/blob/1.21/build.gradle
I can send my own in a bit, just woke up
The include scope dumps the dep into the resulting jar
(it's a bit more complex than that, I think it actually puts the dep jar into meta-inf and puts that on the classpath later, but you get the idea)
Na it's a .build file, and a Gradle dependency block doesn't feature the
include
Syntax so I was confusedyou can have multiple dependency scopes at once in groovy if I'm not mistaken
So include implementation adds it to the include and the implementation configuration
yeah
that's how I understand it to work anyway
does this have anything that might require to specify each dependency?
8 spaces indentation
templates be like