问Gradle kotlin dsl的gradle子项目条件插件配置EN我通过创建一个应用于所有子项目的precompiled script plugin解决了这个问题。如果你想用 gradle kotlin DSL,那么请注意,accessors 的支持从 0.8.0 开始(gradle 3.5),后续也做了一些完善和更新,目前已经默认开启了这一项功能。使用时由于 accessors 是动态生成的,因此要注意使用 plugins{...} 可以...
Adaptable, fast automation for all. Contribute to gradle/gradle development by creating an account on GitHub.
4 changes: 2 additions & 2 deletions 4 ...le/kotlin/dsl/provider/plugins/precompiled/tasks/CompilePrecompiledScriptPluginPlugins.kt Original file line numberDiff line numberDiff line change @@ -38,7 +38,7 @@ import org.gradle.jvm.toolchain.JavaLauncher import org.gradle.kotlin.dsl.precompile...
问使用Gradle和Kotlin在预编译脚本中应用插件EN在上一篇博客 【Android Gradle 插件】组件化中的 Gradle ...
`kotlin-dsl-precompiled-script-plugins` } repositories { mavenCentral() } The file I bring in from the Dependencies folder located in buildSrc/src/main/java. object Versions { const val compose_version = "1.0.0" } object Dependencies { ...
at org.gradle.kotlin.dsl.tooling.builders.KotlinBuildScriptModelBuilderKt.getPrecompiledScriptPluginsMetadataDir(KotlinBuildScriptModelBuilder.kt:229) at org.gradle.kotlin.dsl.tooling.builders.KotlinBuildScriptModelBuilderKt.access$getPrecompiledScriptPluginsMetadataDir$p(KotlinBuildScriptModelBuilder.kt:1) at ...
Let thekotlin-dslplugin configure precompiled script plugins support(#1135) Applying thekotlin-dslplugin now also applies thekotlin-dsl-precompiled-script-pluginsplugin. See theGradle Kotlin DSL Primerchapter of the Gradle User Manual for more information. ...
So far I can say that the nightly does not fix the issue for my android project. I do not use thekotlin-dslplugin in my android project but I apply aprecompiled script pluginand the project that defines thisprecompiled script plugindoes use thekotlin-dslplugin and there I do not get the...
Provide a way to use kotlin-dsl in precompiled script plugins #17016 Add option to disable Kotlin version warnings in kotlin-dsl #16779 Allow suppression of Kotlin compiler version mismatch warning #13020 New Gradle Sync is not supported due to containing Kotlin modules using an unsupported plugin...
If you'd use Kotlin DSL precompiled script plugins in buildSrc instead, then you'll get the type safe accessors and no classpath issues, see https://docs.gradle.org/current/userguide/kotlin_dsl.html#kotdsl:precompiled_plugins 👍 1 👎 4 eskatos mentioned this issue Apr 24, 2019 Add...