'Gradle 7 equivalent of Gradle 5 declaring of dependency

what is right equivalent of multiproject (java projects) build.gradle setup for this dependency?

Gradle 5: compile project(path: ":foo", configuration: "runtime")

After gradle 7 runtime configuration is deprecated, also as compile, so need to refactor this dependency.

My opinion is

Gradle 7: implementation project(path: ":foo", configuration: "runtimeElements")

but i dunno, is it right?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source