[#2283] Class loading issues in GenerationTool when called by Gradle