Kord-Extensions/kord-extensions

Question about using the latest version of Kord Extension compatible with Kord 0.9.0

nthduc opened this issue · 2 comments

nthduc commented

build.gradle.kts:

plugins {
    // Apply the org.jetbrains.kotlin.jvm Plugin to add support for Kotlin.
    id("org.jetbrains.kotlin.jvm") version "1.8.10"
    id("com.github.johnrengelman.shadow") version "7.1.2"
    id("io.ktor.plugin") version "2.3.1"
    id("org.jetbrains.kotlin.plugin.serialization") version "1.8.10"

    // Apply the application plugin to add support for building a CLI application in Java.
    application
}

repositories {
    // Use Maven Central for resolving dependencies.
    mavenCentral()
    maven("https://maven.pkg.jetbrains.space/kordlib/maven")

    // Add the 'https://m2.dv8tion.net/releases' repository
    maven {
        url = uri("https://m2.dv8tion.net/releases")
    }
    maven {
        url = uri("https://maven.pkg.jetbrains.space/public/p/ktor/eap")
    }
    maven("https://maven.kotlindiscord.com/repository/maven-public/")
    maven {
        name = "Sonatype Snapshots"
        url = uri("https://oss.sonatype.org/content/repositories/snapshots")
    }
    maven { url = uri("https://jitpack.io") }
    maven {
        url = uri("https://repo.maven.apache.org/maven2/")
    }
    maven {
        name = "topiWTFReleases"
        url = uri("https://maven.topi.wtf/releases")
    }
}

dependencies {
    // Use the Kotlin JUnit 5 integration.
    testImplementation("org.jetbrains.kotlin:kotlin-test-junit5")

    // Use the JUnit 5 integration.
    testImplementation("org.junit.jupiter:junit-jupiter-engine:5.9.1")

    implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.1")

    // This dependency is used by the application.
    implementation("com.google.guava:guava:31.1-jre")

    implementation("dev.kord:kord-core:0.9.0")

    implementation("io.github.cdimascio:dotenv-kotlin:6.4.1")

    // https://mvnrepository.com/artifact/ch.qos.logback/logback-classic
    implementation("ch.qos.logback:logback-classic:1.4.7")

    implementation("dev.schlaubi.lavakord:kord:4.1.0")
    // List of artifacts, e.g.:
    implementation("io.ktor:ktor-server-core-jvm:$ktor_version")
    implementation("io.ktor:ktor-server-netty-jvm:$ktor_version")
    implementation("io.ktor:ktor-server-status-pages-jvm:$ktor_version")
    implementation("io.ktor:ktor-server-default-headers-jvm:$ktor_version")
    implementation("io.ktor:ktor-server-cors:$ktor_version")
    implementation("io.ktor:ktor-client-core:$ktor_version")
    implementation("io.ktor:ktor-client-json:$ktor_version")
    implementation("io.ktor:ktor-client-gson:$ktor_version")
    implementation("io.ktor:ktor-client-apache:$ktor_version")
    implementation("io.ktor:ktor-client-serialization:$ktor_version")


    implementation("com.kotlindiscord.kord.extensions:kord-extensions:1.5.6")
    }
    

ERROR

:app:test: Could not resolve dev.kord:kord-core:0.8.0.
Required by:
    project :app > com.kotlindiscord.kord.extensions:kord-extensions:1.5.6

Possible solution:
 - Declare repository providing the artifact, see the documentation at https://docs.gradle.org/current/userguide/declaring_repositories.html

I am using kord version 0.9.0, which version is kord extensions compatible with. I can't find a latest version
https://central.sonatype.com/artifact/com.kotlindiscord.kord.extensions/kord-extensions/1.5.6

Hello, and thanks for opening an issue! As this is the first time you've created an issue on this repository, we'd just like to offer you a warm welcome to the project, and the following pointers:

  • Most importantly, all issues must adhere to our Code of Conduct. Please give it a quick read if you haven't already.

  • While our team is passionate about the projects we've created here, we're all volunteers. Please don't be offended if it takes time for us to get to your issue - we'll be here as soonas we can be!

  • Please provide as much information as possible when asking a question, reporting a problem, or submitting a feature request. This will help us to address your issue quickly and efficiently. If you forgot to add some information, no worries - feel free to edit the issue and add anything you missed!

    Thanks for contacting us! If you have any further questions, please feel free to join us on Discord in the #dev-kotdis channel (or #kordex-discussion for Kord Extensions projects), or to contact a staff member directly.

A few things...

  1. You should not provide a Kord dependency - KordEx will pull in the correct version of Kord for you as an API dependency.
  2. It's recommended that you make use of KordEx snapshot versions, if you're able to - they're more "current version" than the non-snapshot releases
  3. Make sure you have both Sonatype Snapshots repositories added to your respositories block

If all else fails, take a look at the template repo