1. 07 Jun, 2014 2 commits
    • Phillip Webb's avatar
      Polish DataSourceInitialization code · e032b673
      Phillip Webb authored
      Rename a few classes and methods relating to DataSourceInitialization
      and update the DataSourceInitializedPublisher to check for Hibernate
      settings.
      e032b673
    • Dave Syer's avatar
      Remove @EnableAutoConfiguration from autoconfigure tests · 38af1c2e
      Dave Syer authored
      It was doing scary things (like starting elasticsearch, hornetq etc).
      There's still an outstanding question about why the context was
      not being properly closed in such a scenario (maybe one of those
      embedded servers lurking on a background thread?).
      
      See gh-1034
      38af1c2e
  2. 06 Jun, 2014 9 commits
  3. 05 Jun, 2014 14 commits
  4. 04 Jun, 2014 9 commits
    • Stephane Nicoll's avatar
      Use an embed HornetQ broker by default · 726991c1
      Stephane Nicoll authored
      This commit changes the default behavior of the HornetQ auto
      configuration. Prior to this commit, an embedded broker was only
      started when it was requested explicitly by a configuration option.
      
      This is inconsistent with the ActiveMQ support and boot favors the
      easiest route. If the necessary classes are available, HornetQ is
      embedded in the application by default.
      
      Fixes gh-1029
      726991c1
    • Oliver Gierke's avatar
      Make HypermediaAutoConfiguration more lenient. · d6718025
      Oliver Gierke authored
      HypermediaAutoConfiguration didn't consider an @EnableHypermediaSupport 
      annotation being present in the user configuration which could've caused 
      it to be evaluated twice.
      
      This is especially the case if both the auto-configuration for Spring 
      HATEOAS and Spring Data REST kick in as Spring Data REST actively declares
      @EnableHypermediaSupport. The double evaluation then causes injection
      ambiguities as we now get multiple beans of e.g. LinkDiscoverers deployed.
      d6718025
    • Andy Wilkinson's avatar
      Add explicit dependencies to make Gradle pull in the desired version · ec1ce2dd
      Andy Wilkinson authored
      Due to the lack of dependency management in Gradle a number of the
      starters were pulling in old versions of spring-tx (and in some cases
      spring-context-support as well) as the only dependency was a
      transitive one that pulled in an older version.
      
      This commit adds explicit dependencies on spring-context-support and
      spring-tx where appropriate. These dependencies will specify Boot's
      preferred version of Spring causing Gradle to do the right thing as it
      prefers the latest version of a dependency when there is more than one
      to choose from.
      
      Fixes #1028
      ec1ce2dd
    • Andy Wilkinson's avatar
      Fix numbering of items in list of steps for Openshift deployment · 06fe1554
      Andy Wilkinson authored
      The list continuation character '+' can be used to prevent a blank
      line from ending a list, thereby allowing code blocks to be included
      in a list. See "Complex content in outline lists" [1] for more
      details.
      
      [1] http://asciidoctor.org/docs/asciidoc-syntax-quick-reference/#lists
      
      Fixes #1025
      06fe1554
    • Andy Wilkinson's avatar
      Exclude commons-logging to the extent that even Gradle’s happy · 196f92bd
      Andy Wilkinson authored
      Gradle hasn’t different exclusion semantics to Maven. In Maven you can
      exclude spring-core’s commons-logging dependency once and it’ll be
      honoured even if you have multiple transitive routes to commons-logging
      via spring-core. In Gradle you have to exclude commons-logging from
      everything that has a transitive spring-core dependency. To make matters
      worse this doesn’t only apply to dependencies and exclusions declared in
      build.gradle but also to dependencies and exclusions declared in the pom
      files of the artifacts that a Gradle build depends upon.
      
      In short, to make our starters work as intended with Gradle, this commit
      adds many, many exclusions for commons-logging. It also removes
      commons-logging exclusions from spring-boot-dependencies’
      <dependencyManagement> as they have no effect with Gradle and their
      presence can cause us to miss required exclusions in a starter
      
      Fixes #987
      196f92bd
    • Stephane Nicoll's avatar
      Add documentation for JMS support · 9ad7a22e
      Stephane Nicoll authored
      This commit documents Boot's JMS support, in particular how Boot
      can auto-configure the ConnectionFactory for ActiveMQ and
      HornetQ.
      
      Fixes gh-1026
      9ad7a22e
    • Dave Syer's avatar
      Cross link Actuator and User Guide docs · c41fa08a
      Dave Syer authored
      Not having READMEs in github is a mistake IMO, so here's one
      restored and with a link to the docs. Docs also updated to
      more accurately reflect the location of the actuator features
      in implementation.
      
      See https://github.com/spring-guides/gs-actuator-service/pull/7
      for the Getting started guide change
      
      Fixes gh-1014
      c41fa08a
    • Andy Wilkinson's avatar
      c0c3c78f
    • Dave Syer's avatar
      Revert deferred DDL changes and re-oreder database migrations · 74166e77
      Dave Syer authored
      Schema initialization now happens in @PostConstruct (effectively)
      whether it is via the Hibernate EntityManagerFactory or the
      Boot DataSourceInitialization (in addition or instead). The data.sql
      script if it exists is still executed on an event fired from the
      other places, so those tests are passing.
      
      Flyway and liquibase have bean factory post processors (like
      the one they use to order the audit aspect in Spring Data) that
      enforce a dependency on those components from the EntityManagerFactory.
      So Hibernate validation is still happy (and there are 2 tests to
      prove it now as well).
      
      Fixes gh-1022
      74166e77
  5. 03 Jun, 2014 6 commits
    • Andy Wilkinson's avatar
      Make ElasticSearchAutoConfiguration conditional on SD Elasticsearch · f7d1aab9
      Andy Wilkinson authored
      ElasticSearchAutoConfiguration depends on two Spring Data Elasticsearch
      classes (TransportClientFactoryBean and NodeClientFactoryBean), however
      it’s only conditional on Elasticsearch itself being on the classpath.
      This lead to start up failures due to a ClassNotFoundException. Its
      @ConditionalOnClass configuration has been updated so that the
      auto-configuration will only be enabled if both Elasticsearch and Spring
      Data Elasticsearch are on the classpath.
      
      The dependencies on TransportClientFactoryBean and NodeClientFactoryBean
      were ‘hidden’ in ElasticsearchProperties. The logic that uses these
      types has been moved into ElasticSearchAutoConfiguration so that the
      usage of the types and the related @ConditionalOnClass configuration
      is in the same file.
      
      Fixes #1023
      f7d1aab9
    • Andy Wilkinson's avatar
      Update dependencies to latest maintenance releases · 9b44c322
      Andy Wilkinson authored
      Despite Javassist 3.18.2-GA being available, it has not be upgraded.
      This is to keep it in sync with Hibernate.
      9b44c322
    • Andy Wilkinson's avatar
      Initialize DependencyResolutionContext with default dependency mgmt · 156dadae
      Andy Wilkinson authored
      In the absence of a @GrabMetadata annotation,
      DependencyResolutionContext provided no dependency management. This
      was leading to incorrect dependency versions being pulled in. This
      commit intializes the context with default dependency management that
      will be replaced should @GrabMetadata be encountered.
      
      Fixes #1021
      156dadae
    • Dave Syer's avatar
      Check for existence of ResourceBundle before creating MessageSource · 0def7644
      Dave Syer authored
      Irritatingly a ResourceBundleMessageSource never gives up trying to
      create a resource bundle for every message resolution, so to stop
      it logging all those warnings (and probably sucking performance-wise)
      we need to disable the MessageSource if a bundle is not provided.
      
      Fixes gh-1019
      0def7644
    • Dave Syer's avatar
      Add example for openshift deployment · 1567964e
      Dave Syer authored
      Fixes gh-668 (if the asciicdoc compiles)
      1567964e
    • Christian Dupuis's avatar
      Fix HealthIndicator documentation · e104b341
      Christian Dupuis authored
      fixes #1018
      e104b341