sabarigirinathan k r
04/29/2024, 6:30 AMgildor
04/29/2024, 6:32 AMgildor
04/29/2024, 6:32 AMgildor
04/29/2024, 6:33 AMsabarigirinathan k r
04/29/2024, 6:41 AMgildor
04/29/2024, 6:42 AMgildor
04/29/2024, 6:43 AMbogus {
foo {
iDoNotExist()
}
}
And it will look the same
For Groovy everything is possible, for Kotlin it showed as errorgildor
04/29/2024, 6:45 AMgildor
04/29/2024, 6:46 AMsabarigirinathan k r
04/29/2024, 6:50 AMgildor
04/29/2024, 6:50 AMgildor
04/29/2024, 6:51 AMgildor
04/29/2024, 6:51 AMsabarigirinathan k r
04/29/2024, 7:01 AMVampire
04/29/2024, 6:27 PMas I said, if you rename to test.build.gradle.kts it will work
That's not correct.
whatever.gradle.kts
is fine as "build script context".
The problem is, that you use legacy script plugins (the things you "apply from"). Even with Groovy they are highly discouraged and have many quirks. With Kotlin DSL it is even worse as you do only get type-safe accessors for things you applied using the plugins { ... }
block and that block is not available in legacy script plugins.
You should instead use convention plugins in buildSrc
or an included build, for example implemented as precompiled script plugins. Those are almost like normal build scripts.gildor
04/30/2024, 3:08 AM.Ah, yeah, you right, I probably mixed it with settings.gradle.kts caseis fine as "build script context".whatever.gradle.kts