No repositories listed when using Kotlin DSL Gradle project
Answered
I've created a new Gradle project (Kotlin DSL) that uses the mavenCentral() repository. However, the repository is not shown in the Maven repository list (Settings -> Build, Execution, Deployment -> Build Tools -> Maven -> Repositories) and therefore cannot be updated, so I don't have any autocomplete for groups, artifacts and versions when I add new dependencies.
How can I index the repository to get autocompletion.
I'm using IntelliJ Ultimate, version 2028.3.3.
Here is my build.gradle.kts:
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
group = "de.matthjes"
version = "0.0.1-SNAPSHOT"
repositories {
mavenCentral()
}
dependencies {
compile(kotlin("stdlib-jdk8"))
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.1.0")
implementation(group = "ch.qos.logback", name = "logback-classic", version = "1.2.4")
}
plugins {
kotlin("jvm") version "1.3.11"
}
tasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = "1.8"
}
Please sign in to leave a comment.
Please follow this issue for upates: https://youtrack.jetbrains.com/issue/KT-29278
I'd like to, however, clicking on the link I only get a 404 error...
For some reason it was created with the restricted visibility - corrected that. Thanks for reporting.
Thank you, I can see the issue now.