title: How to get Intellij to recognize properties in application.yml
body: <p>I am trying to get Intellij to recognize my properties using gradle. I have followed the steps <a href="https://docs.spring.io/spring-boot/docs/current/reference/html/configuration-metadata.html#configuration-metadata-annotation-processor" rel="noreferrer">here</a>.  So this means I have a <code>@ConfigurationProperties</code> annotated class with some properties.  </p>
  
  <p>I added the spring dependency to process them:</p>
  
  <pre><code>dependencies {
      optional "org.springframework.boot:spring-boot-configuration-processor"
  }
  
  compileJava.dependsOn(processResources)
  </code></pre>
  
  <p>I added the plugin (I've tried not using the plugin and just making it a compile dependency, no change)</p>
  
  <pre><code>buildscript {
      repositories {
          maven { url 'http://repo.spring.io/plugins-release' }
      }
      dependencies { classpath 'io.spring.gradle:propdeps-plugin:0.0.9.RELEASE' }
  }
  
  apply plugin: 'propdeps'
  apply plugin: 'propdeps-maven'
  apply plugin: 'propdeps-idea'
  </code></pre>
  
  <p>When I run the build, I see a <code>build/classes/java/main/META-INF/spring-configuration-metadata.json</code> file is created based off of my properties. 
   When I try to use the property in either <code>application.yml</code> or <code>application.properties</code>, Intellij says it cannot resolve it.  </p>
  
  <p>The docs does say it should be called <code>additional-spring-configuration-metadata.json</code> and may expect it to be called that to process it, but I do not see a way to make the build name it that way nor configure Intellij to expect otherwise.</p>
  
  <p>Has anyone got this working with gradle?  Or is this a bug.</p>
  
  <p><strong>Edit</strong> I created a <a href="https://github.com/phospodka/properties-playground" rel="noreferrer">repo</a> with a pair of projects to demonstrate this.  One for gradle and one for maven.  I created the projects from start.spring.io and basically just added the properties configuration.  I also used a straight compile dependency in both cases instead of optional / compileOnly.</p>
  
  <p>I had not confirmed this before, but the code assist does work for maven, but not gradle.  Both create a <code>spring-configuration-metadata.json</code> in the <code>META-INF</code> in their respective build folders.  I am not exactly sure who is not picking it up.</p>
  
  <h3>Misc relevant versions</h3>
  
  <pre><code>Intellij: 2017.3.4
  Springboot: 1.5.9
  Gradle: 4.4.1
  Java: 8.161
  </code></pre>