Does anyone know if you can apply version catalog ...
# community-support
m
Does anyone know if you can apply version catalog customizations this way. We are creating the version catalog itself inside a convention plugin which also executing inside a
gradle.settingsEvaluated
block as well. I would think the
getByName
would fail if that handn’t been applied yet. However, I don’t see the actual version getting changed when doing it this way.
Copy code
gradle.settingsEvaluated {
    dependencyResolutionManagement {
        versionCatalogs {
            getByName("internalLibs") {
                library("alias", "group:artifact:version"")
            }
        }
    }
}