title: What's wrong with my build.gradle - sourceSets - srcDir
body: <p>This is my sourceSets configuration in <code>build.gradle v7.1.1</code>:</p>
  <pre><code>sourceSets {
      test {
          resources {
              srcDir &quot;src/test/resources/sql&quot;
          }
      }
  }
  </code></pre>
  <p>And when i run <code>gradlew clean test</code>, it's working fine i.e BUILD SUCCESSFUL. But, i am seeing a red-cross overlay as follows on my IDE(<code>Spring Tool Suite v4.11.1.RELEASE</code> if that matters):
  <a href="https://i.stack.imgur.com/K8tRr.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/K8tRr.png" alt="enter image description here" /></a> and this is the corresponding <code>Problems view</code> pane error:<br><br> <a href="https://i.stack.imgur.com/WB9Df.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/WB9Df.png" alt="enter image description here" /></a><br><br>
  When i remove the <code>srcDir</code> configuration, there is no more red-cross overlay.</p>