1. 14 Jul, 2020 6 commits
    • Andy Wilkinson's avatar
      Merge pull request #22112 from dreis2211 · 0566c29e
      Andy Wilkinson authored
      * gh-22112:
        Cleanup temporary files after Maven plugin execution
      
      Closes gh-22112
      0566c29e
    • dreis2211's avatar
      Cleanup temporary files after Maven plugin execution · 021d9b59
      dreis2211 authored
      See gh-22112
      021d9b59
    • Andy Wilkinson's avatar
      Merge pull request #22294 from dreis2211 · 9dea67f7
      Andy Wilkinson authored
      * gh-22294:
        Reduce started threads in OnClassCondition
      
      Closes gh-22294
      9dea67f7
    • dreis2211's avatar
      Reduce started threads in OnClassCondition · 60e71463
      dreis2211 authored
      Prior to this commit, OnClassCondition started a thread even if the number of
      passed autoconfiguration class candidates never exceeded 1. This commit only
      starts a thread if there is actually work to split in half.
      
      See gh-22294
      60e71463
    • Andy Wilkinson's avatar
      Merge branch '2.2.x' into 2.3.x · 196d2053
      Andy Wilkinson authored
      Closes gh-22325
      196d2053
    • Andy Wilkinson's avatar
      Replace ConfigurationPropertiesBeanDefinitionValidator with a FailureAnalyzer · 9558779d
      Andy Wilkinson authored
      Previously, regular bean definitions for configuration properties classes
      that attempt to use constructor binding were detected in a bean factory
      post-processor, ConfigurationPropertiesBeanDefinitionValidator. This
      validation examined every standard bean definition and failed if it
      encountered one for a class that should have used constructor binding.
      There were two downsides to this approach:
      
      1. Reflection used to identify if the bean should be using constructor
         binding triggered class loading that could prevent subsequent
         instrumentation by a load-time weaver.
      2. The cost of the validation was incurred when there was no
         misconfiguration to report.
      
      This commit replaces ConfigurationPropertiesBeanDefinitionValidator
      with a failure analyzer. This failure analyzer only runs once a failure
      has occurred and the application context is not going to complete
      refresh. This avoids causing problems with subsequent instrumentation
      and also avoids the cost of validation and error reporting unless there
      is an error.
      
      Fixes gh-20798
      9558779d
  2. 13 Jul, 2020 1 commit
  3. 10 Jul, 2020 1 commit
  4. 09 Jul, 2020 10 commits
  5. 08 Jul, 2020 4 commits
    • Scott Frederick's avatar
      Improve Redis URL validation · 1e2176b6
      Scott Frederick authored
      This commit improves the validation of URLs provided in the property
      'spring.redis.url' used to auto-configure a Spring Data Redis
      connection. In particular, only the URL schemes 'redis://' and
      'rediss://' are allowed, and any other scheme will result in a
      configuration error. A failure analyzer is also provided to improve
      diagnostics for common mis-configurations detected by this validation.
      
      Fixes gh-21999
      1e2176b6
    • Andy Wilkinson's avatar
      Merge branch '2.2.x' into 2.3.x · d84aeef5
      Andy Wilkinson authored
      Closes gh-22264
      d84aeef5
    • Andy Wilkinson's avatar
      66987533
    • Andy Wilkinson's avatar
      Honor spring.autoconfigure.exclude in test slices · 502ccb65
      Andy Wilkinson authored
      Previously, the import selector for `@ImportAutoConfiguration` did not
      consider the spring.autoconfigure.exclude property when determining
      which auto-configurations to exclude. This meant that tests using a
      slice that included a particular auto-configuration would include it
      even if the application's configuration excluded it via
      spring.autoconfigure.exclude. Confusingly, this could result in a
      sliced test using an auto-configuration that would be excluded in a
      broader `@SpringBootTest`.
      
      This commit updates the ImportAutoConfigurationImportSelector to
      consider the spring.autoconfigure.exclude property so that sliced tests
      will use a subset of the auto-configurations that a `@SpringBootTest`
      would use.
      
      Fixes gh-21736
      502ccb65
  6. 07 Jul, 2020 14 commits
  7. 06 Jul, 2020 4 commits