Use file() instead of new File() in Gradle script