Answer the question
In order to leave comments, you need to log in
Why is building a gradle project taking so long?
Made an application. simple REST service on Spring Boot. Development environment - Intelij Idea
When you click on the project build (bootRun), the project builds for a very long time, waited an hour, but did not wait, although at the stage
Started TestappApplication in 5.718 seconds (JVM running for 6.171)
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 {
mavenCentral()
}
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 {
useJUnitPlatform()
}
Answer the question
In order to leave comments, you need to log in
In the case of bootRun in the IDEA console (and in any other console), bootRun will spin at 80% (conditionally). You start the application with this command, so it starts and works until you stop it yourself, or until a critical error occurs in the program, at which the program ends. As a rule, to build (namely, build) SpringBoot applications use bootJar / bootWar tasks. I assure you, they are finite, and work fast enough.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question