Akbolat’s Workshop

Set targetSdk, minSdk using versionCatalogs in Gradle 7.4+

Reading SDK versions from a version catalog in Groovy and Kotlin

In short, use cast to Integer in Groovy or parse toInt() in Kotlin