Hello team, I encountered an issue while migratin...
# android
s
Hello team, I encountered an issue while migrating my Gradle build scripts from Groovy to Kotlin DSL. I've successfully migrated the default Gradle files (project-level, app-level module, and settings) to Kotlin DSL. However, when I manually create a new file and try to migrate it to Kotlin DSL, I encounter errors. Interestingly, these manually created files work without errors in Groovy. I'm using Kotlin version 1.9.0, Gradle 8.4, Gradle Plugin 8.3.2, and JDK 17. Could someone please help me troubleshoot this issue? I'm unsure why this is happening or if I've missed something in the migration process. Thank you in advance for any assistance or insights you can provide!
c
Better ask in #gradle But I Guess
test.gradle.kts
is not „registered“ as a gradle build script so you cannot use
buildScript
and
plugins
in there. Groovy just does not highlight the issues because it does not care at this stage.
1
s
Neega enga bro inga?
c
In English, please!?