Why build gradle project lasts a very long time?

Made app. simple REST service based on Spring Boot. Development environment - Intelij Idea
When you click on the project Assembly(bootRun) project going very long, a whole hour waited, but did not wait, although at the stage
Started TestappApplication in 5.718 seconds (JVM running for 6.171)

the project is started and everything works, but in the panel Run is still spinning icon to build the project. This despite the fact that I have a dependency of a couple of pieces

How can I fix that project was going?


plugins {
 id 'org.springframework.boot' version '2.2.5.RELEASE'
 id 'io.spring.dependency-management' version '1.0.9.RELEASE'
 id 'java'

group = 'com.test'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '1.8'

repositories {

dependencies {
 implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
 implementation 'org.springframework.boot:spring-boot-starter-web'
 implementation 'org.liquibase:liquibase-core'
 runtimeOnly 'org.postgresql:postgresql'
 testImplementation('org.springframework.boot:spring-boot-starter-test') {
 exclude group: 'org.junit.vintage', module: 'junit-vintage-engine'

test {

The settings window the gradle build:


Tab Run:

April 8th 20 at 02:39
1 answer
April 8th 20 at 02:41
In the case bootRun console IDEA (or indeed any other console) and it will spin bootRun 80% (relative). You launch the app by this command that it runs and runs, until You stop, or while in the program will not occur for critical errors that will occur the completion of the program. As a rule for the Assembly (the Assembly) of the application using SpringBoot task bootJar/bootWar. I assure You, they are finite, and are quite fast.
so a build using tasks does not include the application starts and includes bootRun, isn't it? - Jarrell.Koch86 commented on April 8th 20 at 02:44
@Jarrell.Koch86 I don't really understand what You mean. bootRun builds the application and launches it, this is the same task as everyone else, only he does not finish when you run the application, and continues to work, bringing in the console logs of the application - Oscar.Waelc commented on April 8th 20 at 02:47

Find more questions by tags GradleSpringIntelliJ IDEA