Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why is every item in build.gradle gray?

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.

enter image description here

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

like image 997
zacader Avatar asked Aug 09 '19 07:08

zacader


1 Answers

You need to click "Reload All Gradle projects" button

enter image description here

like image 128
Oleh Tatsiun Avatar answered Nov 18 '22 20:11

Oleh Tatsiun