In latest IntelliJ IDEA Community Edition(2018.1), there's no Create directories for empty content roots automatically option available in New Project dialog. But we can go to Preferences...->Build, Execution, Deployment->Gradle and check the underlined option in the screenshot below.