david.bilik
05/12/2020, 6:22 AMauth
artifact. This is my build.gradle
plugins {
id 'java'
id 'org.jetbrains.kotlin.jvm' version '1.3.72'
}
apply plugin: 'java'
repositories {
jcenter()
}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
def ktor_version = '1.3.0'
implementation "io.ktor:ktor-client-okhttp:$ktor_version"
implementation "io.ktor:ktor-client-gson:$ktor_version"
implementation "io.ktor:ktor-client-auth:$ktor_version"
implementation "io.ktor:ktor-client-logging:$ktor_version"
}
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
and I am trying to use Basic authentication when making a request from the client but import io.ktor.client.features.auth.Auth
is not resolved in the IDEA even though I can see it in external libraries in the project structure. I thought that it can be related with gradle version, but I’ve updated to 6.1.1 and nothing changed"io.ktor:ktor-client-auth-jvm:$ktor_version"
helps but is it necessary?