dokkatoo icon indicating copy to clipboard operation
dokkatoo copied to clipboard

Simple property assignments in KTS

Open Goooler opened this issue 2 years ago • 2 comments

https://blog.gradle.org/simpler-kotlin-dsl-property-assignment

Goooler avatar Sep 15 '23 15:09 Goooler

Hey, thanks for updating to use the new property assignment! I'll get to this eventually, but it may take a couple of months - sorry.

The files in directories like examples/*/dokka/ should be copied from the head Dokka repo (automatically, with a Gradle task), so they shouldn't be modified.

I'm undecided on whether the Dokkatoo examples should also be updated. On one hand it's nice to use the latest and greatest, on the other it might make the examples too different and hinder the usefulness of the examples. Also, it would basically require Gradle 8.4 - and too many projects tend to be slow in updating Gradle. Keeping a wider compatibility would probably be better.

aSemy avatar Oct 05 '23 18:10 aSemy

Another issue with the assignment overloads is that it makes it harder to copy/paste code between different contexts.

Valid Kotlin code in build.gradle.kts becomes wrong in buildSrc/src/main/kotlin or other "regular" places. I know it's the case for sam-with-receiver already and this might be a lost battle but I'd personally not rush migrating to the new syntax.

martinbonnin avatar Jan 07 '24 15:01 martinbonnin