Gradle 8.0 how to specify common dependencies

Is there a way to specific a bunch of dependency implementations in one gradle config file possibly
buildSrc/build.gradle and import it in build.gradle config file of other subprojects in Gradle 8.0?

You should have a look at version catalogs.
In them you can also declare bundles of other dependencies that you can then use with one line in the build scripts.