Home > other >  Import project spring boot with Gradle get error: Failed to apply plugin 'org.springframework.b
Import project spring boot with Gradle get error: Failed to apply plugin 'org.springframework.b

Time:11-03

I got this error when importing a spring boot project using gradle:

The supplied phased action failed with an exception.
A problem occurred configuring root project 'tcvoffice'.
A problem occurred evaluating root project 'tcvoffice'.
Failed to apply plugin 'org.springframework.boot'.
Configuration with name 'runtime' not found.

I'm using Java 11.0.12, gradleVersion: '4.3', springBootVersion: '1.5.3.RELEASE'

Can you guys give me a solution so I can solve it?

Many thanks

CodePudding user response:

There're multiple issues with your setup from the tooling perspective. According to Gradle's Java Compatibility Matrix, Gradle 4.3 is not compatible to Java 11. Gradle 4.3 supports Java 9 only. The Spring Boot plugin in version 1.5.3.RELEASE requires Gradle 3.x, according to their System Requirements.

If using Spring Boot 1.5.3.RELEASE is mandatory, I suggest downgrading to Gradle 3.5 and Java 8.

  • Related