我在一个多模块的Kotlin项目中使用buildSrc模块到。该模块使用,如build.gradle.kts中所示 `kotlin-dsl`备选声明: id("org.gradle.kotlin.kotlin-dsl") version "0.16.2"我想使用相同的Kotlin版本编译buildSrc模块以及应用程序模块
> Could not find org.jetbrains.kotlin:kotlin-scripting-compiler-embeddable:1.2.60.Searched in the following locations: file:/Users/<user-name>/.gradle/caches/4.10/embedded-kotlin-repo-1.2.60-2/repo/org/jetbrains/<e
我正在为JVM建立一个基于Kotlin的多模块分级项目。因为根项目不包含任何代码,所以Kotlin插件应该只应用于子项目。build.gradle.kts (根项目) kotlin("jvm") version "1.6.20" apply false
group = "com.example&quo
.)**)**:预编译脚本插件,它应用了一个梯度核心插件和一个外部插件(通过)。/gradlew tasks
The `kotlin-dsl` plugin applied to project ':buildSrcFor more information see https://docs.gradle.org/5.6.4/userguide
我正在构建一个带有几个Kotlin Multiplatform模块的项目。作为Gradle ,为了在这些模块之间共享配置,我创建了一个自定义插件。这个插件应该应用kotlin-multiplatform插件和共享配置,但不幸的是,它无法解析应用多平台配置的kotlin扩展。我的插件(buildSrc\src\main\kotlin\my.pugin.gradle.kts): kot