GradleKotlinConverter
GradleKotlinConverter copied to clipboard
convert dependencyResolutionManagement.versionCatalogs in settings.gradle to settings.gradle.kts
Just sharing one of the findings hopefully will be helpful since as mention here
settings.gradle file
dependencyResolutionManagement {
versionCatalogs {
libs {
version('kotlinVersion', '1.8.0')
plugin('kotlin.jvm', 'org.jetbrains.kotlin.jvm').versionRef('kotlinVersion')
}
}
}
Working conversion
dependencyResolutionManagement {
versionCatalogs {
create("libs") { // <----------- This is main conversion
version("kotlinVersion", "1.8.0")
plugin("kotlin.jvm", "org.jetbrains.kotlin.jvm").versionRef("kotlinVersion")
}
}
}