title: Spring WAR doesn't create BuildProperties Bean
body: <p>I'm doing a bit of a conversion on one of my project artifacts so that we can run it with spring boot instead of only deploying to jboss, as well as adding actuators. This has gone excellently, but in the process of making everything work on spring boot, I've broken the ability to deploy the WAR to jboss.</p>
  
  <p>Specifically, I've added BuildInformation to our deployment information endpoint. Based on my understanding of actuators and build-info.properties creation, as well as literally every google result I've found while trying to find someone else with this problem, what I'm doing currently <em>should</em> be working. I have</p>
  
  <pre><code>    compile 'org.springframework.boot:spring-boot-starter-actuator'
  </code></pre>
  
  <p>in my <code>subprojects</code> section of gradle for my platform-level project (along with every other spring-boot dependency we use). The <code>springBoot</code> task is configured to run <code>buildInfo()</code>. The resultant WAR file has the <code>build-info.properties</code> file under <code>/WEB-INF/classes/META-INF/</code>. Everything appears to be put together exactly like it's supposed to be. And yet:</p>
  
  <pre><code>13:09:59,517 ERROR [org.springframework.web.servlet.DispatcherServlet] (ServerService Thread Pool -- 53) Context initialization failed: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'pingController' defined in VFS resource ["&lt;snip&gt;/PingController.class"]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'org.springframework.boot.info.BuildProperties' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {}
  </code></pre>
  
  <p>Any thoughts on where I should be looking?</p>