Creating a blank Gradle project from a plugin


Hi...I'm trying to have a custom action that, among other things, creates an empty Gradle project. Generating the build.gradle and settings.gradle file is easy because those can be almost blank anyway, but I'm struggling to find the "right way" to do this such that the Gradle wrapper is also generated. I know IntelliJ can do this somewhere because it's in the New Project wizard. I found GradleResourcesProvider.kt, but I can't figure out how to get access to that file from my plugin.

Any help would be appreciated!

Comment actions Permalink

Max, this class is available since the 2021.2 release. You also need to have added as a dependency.

Comment actions Permalink

Jakub Chrzanowski thanks Jakub, works like a charm.


Please sign in to leave a comment.