1. 15 Sep, 2016 3 commits
    • Andy Wilkinson's avatar
      Update docs to note that Gradle 3 is not supported · 30cb15a0
      Andy Wilkinson authored
      Breaking API changes in Gradle 3.0 make it impossible to support
      it reliably alongside Gradle 1 and 2 without mainintaining multiple
      versions of our Gradle plugin. This commit updates the documentation
      to note that Gradle 3 is not supported.
      
      Closes gh-6880
      30cb15a0
    • Andy Wilkinson's avatar
      Allow spring.config.location to be configured via servlet context · b8833c40
      Andy Wilkinson authored
      Previously, in a war deployment, the web environment’s property sources
      were initialized using the servlet context after the application’s
      configuration had been read by ConfigFileApplicationListener. This
      meant that spring.config.location configured via the servlet context
      had no effect.
      
      This commit adds a new ApplicationListener,
      ServletContextApplicationListener, that initialises the configurable
      web environment’s property sources using the servlet context. It’s
      ordered with higher precedence than ConfigFileApplicationListener to
      ensure that any properties defined in the servlet context are available
      when loading the application’s configuration.
      
      Closes gh-6801
      b8833c40
    • Andy Wilkinson's avatar
  2. 12 Sep, 2016 2 commits
    • Stephane Nicoll's avatar
      Use BDD mockito · 6eb0449a
      Stephane Nicoll authored
      See gh-6869
      6eb0449a
    • Stephane Nicoll's avatar
      Fix JMS health indicator · b88cb35e
      Stephane Nicoll authored
      This commit improves the JMS health indicator to identify a broken broker
      that uses failover. An attempt to start the connection is a good way to
      make sure that it is effectively available.
      
      Closes gh-6818
      b88cb35e
  3. 09 Sep, 2016 2 commits
  4. 05 Sep, 2016 2 commits
  5. 31 Aug, 2016 5 commits
  6. 29 Aug, 2016 1 commit
  7. 27 Aug, 2016 1 commit
    • Stephane Nicoll's avatar
      Auto-detect fork value in stop goal · 97f15d60
      Stephane Nicoll authored
      So far, one has to set the "fork" value to both the start and stop
      goals. Since they have the same name, sharing them in a global
      configuration element does the trick. However, the plugin also supports
      auto-detection of the fork value according to other parameters:
      typically if an agent or jvm arguments are set, forking will be
      automatically enabled. This is a problem since the stop goal is not aware
      of that.
      
      This commit transmits the value in a property attached to the
      `MavenProject`. That way, the stop goal can retrieve that value and
      apply the same defaults. This has the side effect that specifying the
      fork value isn't necessary anymore.
      
      Closes gh-6747
      97f15d60
  8. 26 Aug, 2016 2 commits
    • Andy Wilkinson's avatar
    • Andy Wilkinson's avatar
      Improve type determination for factory beans during condition evaluation · 75c1e50c
      Andy Wilkinson authored
      Previously, BeanTypeRegistry did not correctly determine the type
      that would be created by a factory bean if that factory bean was
      returned from a bean method with arguments on a configuration class
      found via component scanning.
      
      The key difference is that bean definitions for bean methods on
      configuration classes found via component scanning use ASM-based
      metadata rather than reflection-based metadata. The ASM-based method
      data does not provide direct access to the Method that will create the
      bean. In this case, BeanTypeRegistry was falling back to looking for
      a method with the matching name and no arguments. Therefore, if
      the bean method had any arguments it would fail to find the method
      and would, therefore, be unable to determine the type of bean
      produced by the factory bean.
      
      This commit updates BeanTypeRegistry to use logic that is very similar
      to Spring Framework's ConstructorResolver's
      resolveFactoryMethodIfPossible method to locate the method that will
      produce the factory bean. It looks for a single method with
      the required name with any number of arguments. If it finds multiple
      methods with the required name and different arguments it returns
      null, just as ConstructorResolver does.
      
      Closes gh-6755
      75c1e50c
  9. 22 Aug, 2016 2 commits
    • Andy Wilkinson's avatar
    • Andy Wilkinson's avatar
      Make configuration of Liquibase’s logging more robust · ba51dc5c
      Andy Wilkinson authored
      We make Liquibase aware of our custom Commons Logging-based logger by
      adding its package to the Liquibase ServiceLocator’s packages to scan.
      Previously, this was happening too late so Liquibase may have already
      initialized and cached a particular logger.
      
      This commit moves the registration of the extra package from the
      Liquibase auto-configuration to the application listener that customises
      Liquibase’s ServiceLocator. This ensures that the package is added
      before Liquibase is used. Unfortunately, configuring Liquibase’s
      ServiceLocator and its packages to scan causes it to try to perform
      some logging, resulting in it caching the wrong type of logger. We
      work around this problem by resetting Liquibase’s LogFactory once we’ve
      finished setting everything up.
      
      Closes gh-6713
      ba51dc5c
  10. 18 Aug, 2016 3 commits
  11. 15 Aug, 2016 1 commit
  12. 12 Aug, 2016 3 commits
  13. 11 Aug, 2016 1 commit
    • Phillip Webb's avatar
      Call afterProperties set in LogFileMvcEndpoint · a49f309e
      Phillip Webb authored
      Call afterPropertiesSet on the delegate `ResourceHttpRequestHandler`
      to prevent an NPE. This change is required for compatibility with
      Spring Framework 4.3 following SPR-13834.
      
      Closes gh-6592
      a49f309e
  14. 08 Aug, 2016 1 commit
    • Andy Wilkinson's avatar
      Cope with null server or management port when creating curie provider · cec6015f
      Andy Wilkinson authored
      Previously, a NullPointerException would occur if
      endpoints.docs.curies.enabled was true and the default value was being
      used for either server.port or management.port.
      
      EndpointWebMvcHypermediaManagementContextConfiguration has been
      restructured to ensure that the DocsMvcEndpoint bean is defined before
      the condition on its existence is evaluated. Previously this was
      dependant on the class’s bean methods being processed in a particular
      ordering, something that would be ok when using ASM but would vary when
      using reflection.
      
      Closes gh-6584
      cec6015f
  15. 01 Aug, 2016 1 commit
  16. 28 Jul, 2016 2 commits
  17. 26 Jul, 2016 6 commits
  18. 25 Jul, 2016 2 commits