K
Kord5mo 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
SolarisOP5mo 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
LustigerLurch5mo ago
you shouldn't need to specify kord cache in your dependencies, kord brings in the right version transitively
Solaris
SolarisOP5mo 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
SolarisOP5mo 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
gdude5mo ago
That's quite an old version of Kord And without a framework, too Oh no, I misread, 14 is the current stable
SchlaubiBus
SchlaubiBus5mo ago
wait what is that file? is that a fabric file?
Solaris
SolarisOP5mo ago
Yes
SchlaubiBus
SchlaubiBus5mo ago
what does it do
gdude
gdude5mo ago
It's just a gradle dependencies block
Solaris
SolarisOP5mo 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
gdude5mo 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
SchlaubiBus5mo ago
Na it's a .build file, and a Gradle dependency block doesn't feature the include Syntax so I was confused
gdude
gdude5mo ago
you can have multiple dependency scopes at once in groovy if I'm not mistaken
SchlaubiBus
SchlaubiBus5mo ago
So include implementation adds it to the include and the implementation configuration
gdude
gdude5mo ago
yeah that's how I understand it to work anyway
Solaris
SolarisOP5mo ago
does this have anything that might require to specify each dependency?
matytyma
matytyma5mo ago
8 spaces indentation
matytyma
matytyma5mo ago
Solaris
SolarisOP5mo ago
templates be like
Want results from more Discord servers?
Add your server