Gradle version catalog converter
gradle-version-catalog-converter
Convert implementation 'androidx.core:core-ktx:1.7.0'
into androidxCoreCoreKtx = { module = "androidx.core:core-ktx", version.ref = "androidxCore" }
You can try it here.
https://takahirom.github.io/gradle-version-catalog-converter/