Skip to content

What is difference between build project in IntelliJ and gradle build?

What is difference build project in IntelliJ and gradle build? Has IntelliJ IDEA its own build system?

In addition, What is difference run in IntelliJ and gradle bootRun?



Build project is IntelliJ’s own build-in build mechanism, it simply compiles all modified and dependent files in the project.

However, it’s a “plain vanilla” build. It doesnt do fancy things like creating artifacts, deploying to repositories, codegen from a wsdl – etc. That’s what we use build automation tools for, and there are 2 of them (maven and gradle) in widsepread use.

Maven and gradle allow developers to set up a custom (and more complex) build configuration.

The maven pom.xml defines lifecycle goals and the gradle build.gradle defines tasks.

Via a plugin architecture, maven / gradle can accomplish almost anything in a build process. Whilst the maven / gradle “run” task can operate similarly to IntelliJ “Build Project”, it’s not the same thing – in this case the build is instrumented by the build tool (maven or gradle) and can be configured differently, and be part of a more complicated build process.

User contributions licensed under: CC BY-SA
1 People found this is helpful