moduleBuilder vs moduleType

Answered

Perhaps I missed something. I see plugins seeming to achieve the same thing but in two different ways, but i'm not clear on which to use and why.

Eg. a plugin using a moduleType declaration in plugin.xml versus a moduleBuilder.

Seems extra code if I declare a moduleType?

3 comments
Comment actions Permalink

Indeed, use com.intellij.moduleType and return builder from com.intellij.openapi.module.ModuleType#createModuleBuilder

0
Comment actions Permalink

Yann Cebron yes, but is one "better" over the other long-term from an API point of view?

0
Comment actions Permalink

Both are valid

0

Please sign in to leave a comment.