This message was deleted.
# community-support
s
This message was deleted.
c
Use the version catalog api in settings.gradle to define the catalog and any conditions.
d
which api we can use to overide it? im using
Copy code
dependencyResolutionManagement {
    versionCatalogs {
        amendedLibs {
         
            // overwrite the "groovy" version declared in the imported catalog
            version("groovy", "3.0.6")
        }
    }
}
but not working
I think i can use this one instead version catalog api configurations.all { resolutionStrategy.dependencySubstitution { if (includeModule.momentum) { substitute module(libs.momentum.get().toString()) using project(":momentum") } } }
v
You did not override the version, as you did not import and version catalog file. You created a new version catalog with just that version. You need to configure the existing
libs
version catalog or import the toml file in your custom one and then also use that one in your build scripts.