K
Kord3mo ago
Solaris

kord cache method doesn't exist

error https://sourceb.in/rxnUgPpdxO gradle.build
include implementation("dev.kord:kord-core:0.14.0")
include implementation("dev.kord:kord-core-jvm:0.14.0")
include implementation("dev.kord:kord-rest:0.14.0")
include implementation("dev.kord:kord-rest-jvm:0.14.0")
include implementation("dev.kord:kord-common:0.14.0")
include implementation("dev.kord:kord-common-jvm:0.14.0")
include implementation("dev.kord:kord-gateway:0.14.0")
include implementation("dev.kord:kord-gateway-jvm:0.14.0")
include implementation('dev.kord.cache:cache-api:0.5.4')
include implementation('dev.kord.cache:cache-map-jvm:0.5.4')
include implementation("dev.kord:kord-core:0.14.0")
include implementation("dev.kord:kord-core-jvm:0.14.0")
include implementation("dev.kord:kord-rest:0.14.0")
include implementation("dev.kord:kord-rest-jvm:0.14.0")
include implementation("dev.kord:kord-common:0.14.0")
include implementation("dev.kord:kord-common-jvm:0.14.0")
include implementation("dev.kord:kord-gateway:0.14.0")
include implementation("dev.kord:kord-gateway-jvm:0.14.0")
include implementation('dev.kord.cache:cache-api:0.5.4')
include implementation('dev.kord.cache:cache-map-jvm:0.5.4')
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 mvnrepository
19 Replies
Solaris
Solaris3mo ago
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
LustigerLurch
LustigerLurch3mo ago
you shouldn't need to specify kord cache in your dependencies, kord brings in the right version transitively
Solaris
Solaris3mo ago
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
Solaris
Solaris3mo ago
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)
No description
gdude
gdude3mo ago
That's quite an old version of Kord And without a framework, too Oh no, I misread, 14 is the current stable
SchlaubiBus
SchlaubiBus3mo ago
wait what is that file? is that a fabric file?
Solaris
Solaris3mo ago
Yes
SchlaubiBus
SchlaubiBus3mo ago
what does it do
gdude
gdude3mo ago
It's just a gradle dependencies block
Solaris
Solaris3mo ago
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
gdude
gdude3mo ago
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)
SchlaubiBus
SchlaubiBus3mo ago
Na it's a .build file, and a Gradle dependency block doesn't feature the include Syntax so I was confused
gdude
gdude3mo ago
you can have multiple dependency scopes at once in groovy if I'm not mistaken
SchlaubiBus
SchlaubiBus3mo ago
So include implementation adds it to the include and the implementation configuration
gdude
gdude3mo ago
yeah that's how I understand it to work anyway
Want results from more Discord servers?
Add your server