title: Missing AmazonS3Client Bean when upgrading SpringCloud Finchley to RELEASE
body: <p>I recently upgraded my SpringCloud project from Brixton to Finchley and everything was working just fine. I was working on Finchley.SR2 and I had no problems, but whenever I upgrade my project to Finchley.RELEASE (and this is the only change I make), the project fails to start.</p>
  <p>The reason is that the project could not find the <code>AmazonS3Client</code> Bean:</p>
  <pre><code>...Unsatisfied dependency expressed through constructor parameter 0; 
  nested exception is 
    org.springframework.beans.factory.NoSuchBeanDefinitionException: 
      No qualifying bean of type 'com.amazonaws.services.s3.AmazonS3Client' available: 
        expected at least 1 bean which qualifies as autowire candidate. 
          Dependency annotations: {}
  </code></pre>
  <p>These are my previous relevant configurations and classes:</p>
  <p><strong>build.gradle</strong></p>
  <pre><code>buildscript {
      ext {
          springBootVersion = '2.0.2.RELEASE'
      }
  
      ...
  
      dependencies {
          classpath(&quot;org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}&quot;)
          classpath('io.spring.gradle:dependency-management-plugin:1.0.5.RELEASE')
      }
  }
  
  apply plugin: 'java'
  apply plugin: 'org.springframework.boot'
  apply plugin: 'io.spring.dependency-management'
      
  dependencyManagement {
      imports {
          mavenBom &quot;org.springframework.cloud:spring-cloud-dependencies:Finchley.SR2&quot;
      }
  }
  
  dependencies {
      ...
      compile('org.springframework.boot:spring-boot-starter-web')
      compile('org.springframework.cloud:spring-cloud-starter-aws')
      compile('org.springframework.cloud:spring-cloud-starter-config'
      ...
  }
  
  ...
  </code></pre>
  <p><strong>S3Config.java</strong> (The class that creates the AmazonS3/AmazonS3Client Bean)</p>
  <pre><code>...
  
  @Configuration
  public class S3Config {
  
      @Bean
      public AmazonS3 amazonS3() {
          return AmazonS3ClientBuilder.standard()
                  .withCredentials(new DefaultAWSCredentialsProviderChain())
                  .build();
      }
  }
  </code></pre>
  <p><strong>StorageService</strong> (the class that fails to find the Bean)</p>
  <pre><code>...
  
  @Service
  public class StorageService {
  
      private final AmazonS3Client amazonS3Client;
  
      @Autowired
      public StorageService(AmazonS3Client amazonS3Client) {
          this.amazonS3Client = amazonS3Client;
      }
  
      ...
  }
  </code></pre>
  <p>And this is the only change I make to the <strong>build.gradle</strong> file when upgrading to Finchley.Release:</p>
  <pre><code>dependencyManagement {
      imports {
          mavenBom &quot;org.springframework.cloud:spring-cloud-dependencies:Finchley.RELEASE&quot;
      }
  }
  </code></pre>
  <p>I've tried looking for any missing library and tweaking all the configurations I can find, but none seem to take any effect.</p>