Ho to make Gradle 7.0 preserve lock status in a single lock file

Gradle generates a lock file for each subproject. Those lock files have a lot of duplicate dependencies. Is there a way to preserve the lock state in a single lock file under the root project?