Intellij plugin make package and main class
Answered
I have made a Project Wizard in the intellij plugin im making, now what I want to do at the end of that is make it generate the src/main/java, or src/main/kotlin, depending on the data provided in the project wizard ive made. I also want it to make this as a gradle project. If anyone knows how to do this that would be much appreciated. Thankyou
Please sign in to leave a comment.
Do you really need a custom UI? Otherwise adding org.jetbrains.plugins.gradle.frameworkSupport.GradleFrameworkSupportProvider extension point will list your plugin's abilities in "Additional Libraries and Frameworks" and you can benefit from "automatic" Gradle support.
Yann Cebron
Yes, a custom UI is required
You could override org.jetbrains.plugins.gradle.frameworkSupport.GradleFrameworkSupportProvider#createComponent so it will show custom UI below list of frameworks.
Yann Cebron I really need to be able to have my plugin appear somewhere on this list
Then you'll need to create custom Wizard https://plugins.jetbrains.com/docs/intellij/project-wizard.html replicating/re-using functionality from Gradle plugin manually (see https://plugins.jetbrains.com/docs/intellij/external-system-integration.html#importing-from-external-model)