with Kotlin DSL build scripts, is there a way to d...
# android
with Kotlin DSL build scripts, is there a way to define the dependency version extras separately in top level build.gradle.kts while still keeping the version update available warnings on the module level build.gradle.kts? I noticed i don't get the outdated dependency version warning anymore which worked before converting from Groovy to Kotlin DSL.
Copy code
// root build.gradle.kts
buildscript {
  extra.set("androidxMaterialVersion", "1.1.0-alpha06")

// module/app build.gradle.kts
dependencies {
this above is the implementation i'm using btw. the module implementation does not give a (Android Studio) warning saying there is a new version available, which works if it's Groovy
I also miss this. THB Kotlin DSL support is still not that mature (not 100% sure, but I doubt it will work). To check versions of project dependency we can use
that provides
./gradlew dependenciesCheck
gradle task Regarding sharing dependencies I would suggest to place them in
(mainly to keep top level grade file shorter and have cleaner syntax for dependency) Take a look at my sample project where both above things are set up https://github.com/igorwojda/Android-Showcase
Interesting, I'll be using some of those buildSrc examples too looks good. Thanks!
@passiondroid I don’t see IDE warning regarding outdated dependencies 🤔