Skip to content

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

@dineshbhagat

Description

@dineshbhagat

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions