LPS-46730 Prepare for Gradle by carefully swapping SDK with Groovy