GradleKotlinConverter icon indicating copy to clipboard operation
GradleKotlinConverter copied to clipboard

convert dependencyResolutionManagement.versionCatalogs in settings.gradle to settings.gradle.kts

Open dineshbhagat opened this issue 2 years ago • 0 comments

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")
    }
  }
}

dineshbhagat avatar Feb 16 '23 07:02 dineshbhagat