how to tell which build tool is used for the current project? Maven or Gradle

Is there a way to tell which build tool is used for the current project?

And once we determined whether it is a maven or gradle project, how to execute maven/gradle build instead of the generic make from IntelliJ?

Currently I use the following method to compile the project, but the problem is that for Gradle projects, this will generate "out" folder instead of "build" folder:

CompilerManager.getInstance(getProject()).make(

Thanks.

1
2 comments
Avatar
Permanently deleted user

Can any one help?

0

Sorry for the late reply. You can use com.intellij.task.ProjectTaskManager to start compilation. If the project is configured to delegate build actions to Gradle, this will automatically run gradle tasks.

0

Please sign in to leave a comment.