Kotlin Kotli n 1.5.0项目升级
在Idea中将project升级到Kotlin 1.5.0,使用IDE中嵌入的Build提供以下输出:Kotlin Kotli n 1.5.0项目升级,kotlin,intellij-idea,gradle-kotlin-dsl,Kotlin,Intellij Idea,Gradle Kotlin Dsl,在Idea中将project升级到Kotlin 1.5.0,使用IDE中嵌入的Build提供以下输出: Build file '../../build.gradle.kts' line: 11 Plugin [id: 'org.jetbrains.kotlin.jvm', version: '1.5.0'] was not found in any of the following sources: repositories { jcenter() mavenLocal()
Build file '../../build.gradle.kts' line: 11
Plugin [id: 'org.jetbrains.kotlin.jvm', version: '1.5.0'] was not found in any of the following sources:
repositories {
jcenter()
mavenLocal()
mavenCentral()
gradlePluginPortal()
maven(url = "https://kotlin.bintray.com/kotlinx")
maven(url = "https://plugins.gradle.org/m2/")
}
但是,gradle构建工作正常(从CLI独立),因此我在Intellij中缺少sthg?
jcenter()
在gradle 7.x中被弃用(请参阅)。考虑删除这一行。此外,想法的问题经常被文件->无效的缓存固定。