Jonathan Hollingsworth
08/08/2021, 12:14 AMbuild.gradle.kts
file.
When I do that, the ./gradlew build
goes from passing, to failing with
Could not determine the dependencies of task ':distTar'.
> Could not resolve all dependencies for configuration ':runtimeClasspath'.
> Could not create task ':compileKotlin'.
> Could not create task of type 'KotlinCompile'.
> Could not create an instance of type org.jetbrains.kotlin.gradle.tasks.KotlinJavaToolchainProvider.
> Could not generate a decorated class for type KotlinJavaToolchainProvider.
> Cannot have abstract method KotlinJavaToolchain.getJdk().
Totally flummoxed me, and my google-fu has failed me.
Can anyone point me in the right direction please?andylamax
08/08/2021, 4:32 AMJonathan Hollingsworth
08/08/2021, 4:33 AMval ktor_version: String by project
val kotlin_version: String by project
val logback_version: String by project
plugins {
id("org.jetbrains.kotlin.plugin.serialization") version "1.5.30-M1"
application
kotlin("jvm") version "1.5.21"
}
group = "com.trackity"
version = "0.0.1"
application {
mainClass.set("com.trackity.ApplicationKt")
}
repositories {
mavenCentral()
}
dependencies {
implementation("io.ktor:ktor-server-core:$ktor_version")
implementation("io.ktor:ktor-server-netty:$ktor_version")
implementation("ch.qos.logback:logback-classic:$logback_version")
testImplementation("io.ktor:ktor-server-tests:$ktor_version")
testImplementation("org.jetbrains.kotlin:kotlin-test:$kotlin_version")
}
Jonathan Hollingsworth
08/08/2021, 4:36 AMandylamax
08/08/2021, 4:37 AMplugins {
kotlin("jvm") version "1.5.21"
kotlin("plugin.serialization") version "1.5.21"
application
}
Jonathan Hollingsworth
08/08/2021, 4:40 AMandylamax
08/08/2021, 4:43 AMJonathan Hollingsworth
08/08/2021, 4:44 AMandylamax
08/08/2021, 4:48 AM