gpt4 book ai didi

gradle - kotlin-compiler-embeddable :1. 3.61 因为没有存储库

转载 作者:行者123 更新时间:2023-12-02 12:57:08 26 4
gpt4 key购买 nike

这让我匿名了一天,我很愚蠢。有人帮我吗?

我在下面收到此错误消息

无法解析外部依赖 org.jetbrains.kotlin:kotlin-compiler-embeddable:1.3.61 因为没有定义存储库。

这是我的 build.gradle 下面

plugins {
id 'idea'
id "org.jetbrains.kotlin.jvm" version "1.3.61"
id "org.jetbrains.kotlin.kapt" version "1.3.61" apply false
id "org.jetbrains.kotlin.plugin.spring" version "1.3.61" apply false
id "org.jetbrains.kotlin.plugin.jpa" version "1.3.61" apply false
id "org.springframework.boot" version "2.1.6.RELEASE" apply false
id "io.spring.dependency-management" version "1.0.7.RELEASE" apply false
id "com.palantir.docker" version "0.22.1" apply false
}

subprojects {
group = "bawoori"
version = "1.0"
sourceCompatibility = 1.8

apply plugin: "kotlin"
apply plugin: "io.spring.dependency-management"

repositories {
mavenCentral()
jcenter()
}

dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
}

compileKotlin {
kotlinOptions {
freeCompilerArgs = ['-Xjsr305=strict']
jvmTarget = '1.8'
}
}

compileTestKotlin {
kotlinOptions {
freeCompilerArgs = ['-Xjsr305=strict']
jvmTarget = '1.8'
}
}
}

最佳答案

你需要通过 jcenter() 解决你的依赖所以添加

repositories {
jcenter()
}
给您的 build.gradle文件。
repositories {
jcenter()
}

plugins {
id 'idea'
id "org.jetbrains.kotlin.jvm" version "1.3.61"
id "org.jetbrains.kotlin.kapt" version "1.3.61" apply false
id "org.jetbrains.kotlin.plugin.spring" version "1.3.61" apply false
id "org.jetbrains.kotlin.plugin.jpa" version "1.3.61" apply false
id "org.springframework.boot" version "2.1.6.RELEASE" apply false
id "io.spring.dependency-management" version "1.0.7.RELEASE" apply false
id "com.palantir.docker" version "0.22.1" apply false
}

subprojects {
group = "bawoori"
version = "1.0"
sourceCompatibility = 1.8

apply plugin: "kotlin"
apply plugin: "io.spring.dependency-management"

repositories {
mavenCentral()
jcenter()
}

dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
}

compileKotlin {
kotlinOptions {
freeCompilerArgs = ['-Xjsr305=strict']
jvmTarget = '1.8'
}
}

compileTestKotlin {
kotlinOptions {
freeCompilerArgs = ['-Xjsr305=strict']
jvmTarget = '1.8'
}
}
}

关于gradle - kotlin-compiler-embeddable :1. 3.61 因为没有存储库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60632244/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com