Slackbot
12/05/2022, 11:00 AMNiels Doucet
12/05/2022, 12:10 PMŁukasz Wasylkowski
12/05/2022, 12:12 PMNiels Doucet
12/05/2022, 12:18 PMPaul Merlin
12/06/2022, 8:47 AMŁukasz Wasylkowski
12/06/2022, 9:47 AMbuild-src
, so I just have a
plugins {
id "org.gradle.kotlin.kotlin-dsl" version "3.2.2"
}
there, and dependabot suggests updates 😅Paul Merlin
12/06/2022, 9:50 AMPaul Merlin
12/06/2022, 9:53 AMorg.gradle.kotlin.dsl.support.KotlinDslPluginsKt.getExpectedKotlinDslPluginsVersion()
to get the blessed versionŁukasz Wasylkowski
12/06/2022, 9:55 AMplugins
block I can’t refer to properties, right? And even then it looks like this property is in gradle-kotlin-dsl-7.6.jar
, should I have access to it before applying kotlin-dsl
plugin?Niels Doucet
12/06/2022, 9:56 AMkotlin-dsl
accessor, instead of defining the full id and version?Paul Merlin
12/06/2022, 9:56 AMPaul Merlin
12/06/2022, 9:56 AMŁukasz Wasylkowski
12/06/2022, 9:57 AMbuild-src/src/main/kotlin
. I may as well be doing something completely wrong, I’d actually like to get by without any additional plugins and just import the extensions as a regular library dependency but I didn’t find any artifact with themPaul Merlin
12/06/2022, 9:59 AMkotlin-dsl
plugin for that.
You can do:
dependencies {
implementation(ProjectExtensionsKt.gradleKotlinDsl())
}
Łukasz Wasylkowski
12/06/2022, 1:23 PMrepositories { exclusiveContent forRepository …
, perhaps because without the plugin I’d need to use it
parameter and not receiver?Paul Merlin
12/06/2022, 1:31 PMit
Łukasz Wasylkowski
12/16/2022, 11:46 AMŁukasz Wasylkowski
12/16/2022, 11:50 AMsamWithReceiver {
annotation("org.gradle.api.HasImplicitReceiver")
}