Gradle: fix dependencies scope merge
IDEA-117556 Gradle custom provided configuration added with compile scope
IDEA-117601 Gradle integration ignores scopes.TEST.plus in build.gradle
(cherry picked from commit f80d692)
Safe hotfix, the code works in a separate process (in gradle daemon, not in IDE process)