title: I have an error but dependencies include in gradle root and gradle module config, why?
body: <p>I have root config gradle.build</p>
  <pre><code>plugins {
          id 'org.springframework.boot' version '2.3.5.RELEASE'
          id 'io.spring.dependency-management' version '1.0.10.RELEASE'
          id 'java'
          id 'idea'
      }
      idea {
          project {
              languageLevel = 14
          }
          module {
              downloadJavadoc = true
              downloadSources = true
          }
      }
      allprojects {
          group &quot;ru.otus&quot;
          repositories {
              mavenCentral()
              maven { url 'https://repo.spring.io/milestone' }
              maven { url 'https://repo.spring.io/snapshot' }
          }
          apply plugin: &quot;io.spring.dependency-management&quot;
          dependencyManagement {
              dependencies {
                  imports {
                      mavenBom(&quot;org.springframework.boot:spring-boot-dependencies:2.3.5.RELEASE&quot;)
                  }
                  dependency(&quot;org.projectlombok:lombok:1.18.16&quot;)
                  dependency(&quot;org.springframework.shell:spring-shell-starter:2.0.1.RELEASE&quot;)
                  dependency(&quot;org.springframework.boot:spring-boot-starter-data-jpa:2.3.5.RELEASE&quot;)
                  dependency(&quot;org.flywaydb:flyway-core:6.4.4&quot;)
                  dependency(&quot;org.postgresql:postgresql:42.2.16&quot;)
                  dependency(&quot;org.hamcrest:hamcrest-core:1.3&quot;)
                  dependency(&quot;org.springframework.boot:spring-boot-starter-test:2.3.5.RELEASE&quot;)
              }
          }
          configurations.all {
              resolutionStrategy {
                  failOnVersionConflict()
              }
              resolutionStrategy {
                  force(&quot;javax.servlet:servlet-api:2.4&quot;)
                  force(&quot;commons-logging:commons-logging:1.1.1&quot;)
                  force(&quot;commons-lang:commons-lang:2.5&quot;)
                  force(&quot;org.codehaus.jackson:jackson-core-asl:1.8.8&quot;)
                  force(&quot;org.codehaus.jackson:jackson-mapper-asl:1.8.3&quot;)
                  force(&quot;org.codehaus.jettison:jettison:1.1&quot;)
                  force(&quot;org.javassist:javassist:3.24.0-GA&quot;)
                  force(&quot;org.apiguardian:apiguardian-api:1.1.0&quot;)
                  force(&quot;org.opentest4j:opentest4j:1.2.0&quot;)
              }
          }
      }
  </code></pre>
  <p>and have build.gradle in module</p>
  <pre><code>plugins {
      id 'java'
  }
  
  version = '0.0.1-SNAPSHOT'
  
  
  dependencies {
      implementation group: 'org.springframework.shell', name: 'spring-shell-starter', version: '2.0.1.RELEASE'
      implementation group: 'org.springframework.boot', name: 'spring-boot-starter', version: '2.3.5.RELEASE'
      implementation group: 'org.flywaydb', name: 'flyway-core', version: '6.4.4'
      testCompile group: 'org.hamcrest', name: 'hamcrest-core', version: '1.3'
      testImplementation group: 'org.springframework.boot', name: 'spring-boot-starter-test', version: '2.3.5.RELEASE'
  }
  </code></pre>
  <p>After download dependencies and add in models annotations like @Entity, @Table @Id and etc. i have an error: cannot find symbol
  @Entity
  ^
  symbol: class Entity
  But i have spring-boot-starter-jpa in dependencies, i don't know why in module i can't use dependencies.</p>