fix for issue GRADLE-3101

Modifications to IDEA scopes using += operator can cause dependency
resolving for configuration and the configuration cannot be changed
after that.