In my plugin (for 2025.3 +) I am implementing a New Project Wizard:
public class StartSpringIOModuleBuilder extends ModuleBuilder {
@Override
public @Nullable Project createProject(String name, String path) {
try {
String downloadedZipPath = ...; // path to Gradle or Maven project zip;
Path pathPath = Path.of(path);
Path pathPathParent = pathPath.getParent();
String projectDirName = pathPath.getFileName().toString();
ZipUtils.extractZip(downloadedZipPath, pathPathParent.toString(), projectDirName + "/");
Project project = super.createProject(name, Path.of(path, name).toAbsolutePath().toString());
return project;
} catch (IOException | ArchiveException e) {
throw new RuntimeException(e);
}
}
}
Once my project wizard finishes the IDE opens. However I get a small dialog asking me to load the Gradle or Maven project. What can I do so that the project type gets detected automatically and gets loaded?