I'm creating a new spring boot project with gradle in intellij idea. After the project is created, each item in the build.gradle and settings.gradle are found to be gray. The picture is below, you can see the grayed out part and the underline on the picture.
IntelliJ IDEA 2019.2 x64 (Ultimate Edition) Java8 gradle wrapper version gradle-5.4.1-bin spring boot version 2.1.7.RELEASE windows10 17763
plugins {
id 'org.springframework.boot' version '2.1.7.RELEASE'
id 'java'
}
apply plugin: 'io.spring.dependency-management'
group = 'com.example'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '1.8'
configurations {
developmentOnly
runtimeClasspath {
extendsFrom developmentOnly
}
}
repositories {
maven { url 'https://maven.aliyun.com/repository/public/' }
mavenCentral()
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-web'
developmentOnly 'org.springframework.boot:spring-boot-devtools'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
}
The project is working properly and there is no error
You need to click "Reload All Gradle projects" button
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With