Creating a blank Gradle project from a plugin

Answered

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!

2 comments
Comment actions Permalink

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

1
Comment actions Permalink

Jakub Chrzanowski thanks Jakub, works like a charm.

0

Please sign in to leave a comment.