How to know what build / dependency management system a project is using?

已回答

I'm hoping someone can tell me if there is a way to determine what build system is in place for a project when a plugin is loaded, and, how to access the properties defined either in the maven pom files or the gradle build files?

What I am specifically trying to do is extend the MapStruct plugin to take account of `<comilerArgs/>` that are added to the maven compiler plugin `<annotationProcessor/>` section of a maven POM.

0

Hi Andy,

For detecting the build system, please see:
https://intellij-support.jetbrains.com/hc/en-us/community/posts/360004199199-Build-system-information

Regarding the compiler options, try to use:

CompilerConfiguration.getInstance(project).getAdditionalOptions(module);
0

请先登录再写评论。