A post on why build.gradle calls don't always go where you expect them to go.

https://www.liutikas.net/2026/04/22/Scope-Reap.html

#gradle

Scope Reap - What are you calling?

Let’s say we have foo/bar/build.gradle file with the following contents:

@Aurimas
This is why I love #Kotlin's @DslMarker it prevents exactly this.
@wakingrufus it prevents one of the problems listed. It does not affect Gradle property invocation in groovy.
@Aurimas
Yeah. And I see you called out DslMarker in the article. I just never pass up an opportunity to talk about Kotlin DSLs :)