I have built an IntelliJ plugin that generates a gradle project using file templates and imports it using an implementation of the JavaModuleBuilder.
As part of this process I would also like to initialise a git repository, set it's upstream and create a new branch for the user. Is there a simple way to do this?
I have added the git4idea plugin to the dependencies and in plugin.xml but regardless of what methods I call on it I can't see it having an affect on the project generated. Currently I am trying to use the methods in GitImpl, such as:
This appears to have no affect but does give the warning: Activities registered via registerPostStartupActivity must be dumb-aware: com.intellij.ide.impl.NewProjectUril$Lambda...
Is there a more simple way to do this I am missing? I would really appreciate your help