Gradle: fix build classpath resolve when 'classpath' configuration is in not unresolved state already
(cherry picked from commit d38f95c)
Gradle tooling tests: minor update to check compatibility with gradle v1.12 version instead of 1.12-rc-1