Commit Graph

323 Commits (adbded33ff2ec7e9c7af6e2d8501fe4039248a41)

Author SHA1 Message Date
Phillip Webb 200cd535c2 Revert "Next development version"
This reverts commit 67189477fe.
11 years ago
Spring Buildmaster 67189477fe Next development version 11 years ago
Spring Buildmaster 542f3cbda8 Next development version 11 years ago
Phillip Webb f30b962ff9 Add support for unpacking nested JARs
Update the executable JAR code to automatically unpack any entries
which include an entry comment starting `UNPACK:` to the temp folder.
The existing Maven and Gradle plugins have been updated with new
configuration options and the `spring-boot-tools` project has been
updated to write the appropriate entry comment based on a flag passed
in via the `Library` class.

This support has been added to allow libraries such a JRuby (which
assumes that `jruby-complete.jar` is always accessible as file) to work
with Spring Boot executable jars.

Fixes gh-1070
11 years ago
Phillip Webb 5f8fbfd73a Add Library abstraction
Add a Library class update the LibraryCallback interface and
implementations to use it. This change is in preparation for
an addition `unpack` flag that will be required to allow the
automatic unpacking of certain nested jars.

See gh-1070
11 years ago
Phillip Webb c713c8091d Polish 11 years ago
Dave Syer 0e5201abe2 Fix typos (see gh-1135) 11 years ago
Dave Syer 542896b28f Support for non-executable JAR in addition to the repackaged one
Stretches the Gradle boot plugin a bit, so there's a sample build
in the "profile" sample. Howto docs give examples.

Fixes gh-1135
11 years ago
Tadaya Tsuyukubo 5fbe5d4120 Add how-to remote debug from Gradle
Add a section to the reference documentation "how-to" about remote
debugging a Gradle started app.

Fixes gh-1129
11 years ago
Phillip Webb 378d38e2e5 Polish doc formatting 11 years ago
Dave Syer 9d5c371cf1 Clarify Maven plugin usage 11 years ago
Dave Syer c04deec6ee Move JMS docs under 'Messaging' 11 years ago
Dave Syer af825fa439 Clarify docs on Gradle configuration 11 years ago
Stephane Nicoll 2bff12a7b5 Better support for HornetQ embedded broker
Prior to this commit it was not safe to start several contexts
using the HornetQAutoConfiguration in the same VM. Each context
was trying to start their own HornetQ embedded broker by default but
only the first was really starting. Worse, the various InVM connection
factories were all silently connecting to the first broker.

This commit introduces a new "serverId" property that is an auto-
incremented integer by default. This identifies the server to connect
to and allows each context to start its own embedded broker in total
isolation of other contexts.

This commits makes it possible for a context to disable its own
embedded broker and connect to an existing one, potentially started
by another context.

Fixes gh-1063
11 years ago
Dave Syer 82cacf4ea9 Clarify main class finder functionality in Gradle plugin
See gh-1072
11 years ago
Dave Syer 0a3612da59 Enhance @GrabMetadata documentation a bit
Fixes gh-320, since this is the officially supported mechanism
for changing the version of Spring (and other dependencies).
11 years ago
Dave Syer f83395b40c Correct docs on BeanNameViewResolver (Fixes gh-1078) 11 years ago
Phillip Webb 3a8a127285 Implement simpler exclusion logic for Gradle
Simplify the exclusion logic used in Gradle by implementing implicit
exclusions rather than trying to detect transitive excludes.

This commit reverts much of the code originally included to fix gh-1047
which adds far too much complexity to the build and still doesn't solve
the underlying issue.

Fixes gh-1103
11 years ago
Phillip Webb a374929c90 Polish 11 years ago
Dave Syer 2c691e5ae5 Enhance JarCommand to support lists of includes and excludes
The lists are comma separated. In addition, user can add prefixes
"+" or "-", to signal that those values should be removed from the
default list, not added to a fresh one. E.g.

$ spring jar app.jar --include lib/*.jar,-static/** --exclude -**/*.jar

to include a jar file specifically, and make sure it is not excluded,
and additionally not include the static/** resources that would otherwise
be included in the defaults. As soon as "+" or "-" prefixes are detected
the default entries are all added (except the ones exlcuded with "-").

Fixes gh-1090
11 years ago
Dave Syer c0efd3a22e Add clarification of ddl-auto and schema.sql 11 years ago
Shinobu Aoki 6ba1304907 Fix typo in reference docs appendix
Fixes gh-1082
11 years ago
Spring Buildmaster 4ca26a21dc Next development version 11 years ago
Spring Buildmaster 05ed7b3bcd Next development version 11 years ago
Phillip Webb 3007a777d0 Roll back to 1.1.0.BUILD-SNAPSHOT 11 years ago
Spring Buildmaster c650f2391e Next development version 11 years ago
Phillip Webb 25a2b8e388 Improve formatting of generated doc tables 11 years ago
Phillip Webb ef395638fc Document gradle plugin exclude rules
Fixes gh-1053
11 years ago
Phillip Webb 75a202e389 Add Spring Loaded, Gradle, IntelliJ "How-To"
Fixes gh-823
11 years ago
Phillip Webb c2c31cdb3c Add upgrade instructions to the reference docs
Add a section with a link to the project wiki.

See gh-731
11 years ago
Phillip Webb 9a5d828f52 Polish docbook formatting 11 years ago
Phillip Webb f619102cd9 Fix broken links in reference docs 11 years ago
Phillip Webb 30f57bab23 Fix broken links in reference docs 11 years ago
Andy Wilkinson 3975f8c931 Remove extra close table markup 11 years ago
Andy Wilkinson b585afe537 Polishing 11 years ago
Phillip Webb 21029d2323 Polish disable repository documentation 11 years ago
Andy Wilkinson f47b40f683 Use spring-boot-version for dependency versions in Gradle Jetty example 11 years ago
Andy Wilkinson db8a9ec597 Polish documentation of @GrabMetadata 11 years ago
Roy Clarkson 1a32a6a06b Fix issues with DeviceDelegatingViewResolverAutoConfiguration
- Log to the correct class
- Set Auto-configure after Thymeleaf hint on main class instead of
  internal static class
- Use 'thymeleafViewResolver' bean name instead of class for
  conditional bean checks
- Fix class name in properties documentation

Fixes gh-1052
11 years ago
Dave Syer 39a94428d3 Add @Conditionals to permit JPA/Mongo mixed usage
I decided to go with both approaches (make the autoconfig for
repositories @ConditionalOnMissingBean(RepositoryFactoryBeanSupport),
so the first one wins; and also make them conditional on
spring.data.*.repositories.enabled=true. The ordering problem
is still there really (it's not defined which repositories will
be created by the autoconfig), so if a user is going to have
2 repository implementations on the classpath, he is going to
have to either choose one to disable, or manualy @Enable* the
other one.

Fixes gh-1042
11 years ago
Phillip Webb f1d216a33b Polish social appendix settings examples 11 years ago
Phillip Webb 2852f7422e Polish Spring Mobile Auto-configuration
Update Spring Mobile support with the following changes:
- Apply source formatting
- User lowercase property prefixes
- Use dashed notation when accessing properties
- Inline some constants

See gh-1049
11 years ago
Dave Syer b75578d99c Adjust order of property sources
@PropertySources *can* and should be added in the slot
after the application.properties (code that is part of the
application should have lower precedence than external
configuration).

Fixes gh-1044
11 years ago
Roy Clarkson 8f32b87c81 Improve Spring Mobile Auto-configuration
- Upgrade Spring Mobile dependency to 1.1.2
- Rename SitePreferenceAutoConfiguration "enabled" property
- Add Auto-configuration for LiteDeviceDelegatingViewResolver
- Update docs

Fixes gh-1049
11 years ago
Phillip Webb 77d5453af2 Add gmavenplus-plugin to parent POM 11 years ago
Phillip Webb 62d2b4136a Polish documentation
Apply consistent styling and edit a few section for clarity.
11 years ago
Phillip Webb e032b673a2 Polish DataSourceInitialization code
Rename a few classes and methods relating to DataSourceInitialization
and update the DataSourceInitializedPublisher to check for Hibernate
settings.
11 years ago
Andy Wilkinson f1b7544672 Fix duplicate id in the docs 11 years ago
Dave Syer 09200361de Align expectations of various JMX configurations
They all want to create an MBeanServer and when that happens
user sees no MBeans, or sometimes just one set (Spring Core,
Spring Integration or Spring Boot). To harmonise them we
create a @Bean of type MBeanServer and link to it in the
other autoconfigs

Fixes gh-1046
11 years ago
Andy Wilkinson fbc1d3eec0 Fix section title depth in JMS docs 11 years ago
Andy Wilkinson 65008606ab Auto-generate auto configuration classes tables 11 years ago
Andy Wilkinson dbd0e778c6 Merge branch '1.0.x' 11 years ago
Andy Wilkinson fe3d2c39a0 Fix broken links in the documentation 11 years ago
Stephane Nicoll 593d180cf3 Add a note regarding dependency overriding
Fixes gh-958
11 years ago
Stephane Nicoll 726991c144 Use an embed HornetQ broker by default
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
11 years ago
Andy Wilkinson 06fe15541a Fix numbering of items in list of steps for Openshift deployment
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
11 years ago
Stephane Nicoll 9ad7a22ebe Add documentation for JMS support
This commit documents Boot's JMS support, in particular how Boot
can auto-configure the ConnectionFactory for ActiveMQ and
HornetQ.

Fixes gh-1026
11 years ago
Dave Syer c41fa08a80 Cross link Actuator and User Guide docs
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
11 years ago
Andy Wilkinson c0c3c78f8d Add missing entries to the tables of auto-configuration classes
Closes #998
11 years ago
Dave Syer 74166e770a Revert deferred DDL changes and re-oreder database migrations
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
11 years ago
Dave Syer 1567964e14 Add example for openshift deployment
Fixes gh-668 (if the asciicdoc compiles)
11 years ago
Christian Dupuis e104b34106 Fix HealthIndicator documentation
fixes #1018
11 years ago
Stephane Nicoll a6702f5b87 Remove reference of mvnDebug
The maven plugin now forks a process to start the application so
mvnDebug cannot be used anymore. This commit replaces the reference
of mvnDebug to a link to an example of the maven plugin.

Fixes gh-992
11 years ago
Dave Syer acf1ccaf44 Add notes for JNDI property values
Fixes gh-999
11 years ago
Dave Syer bd95cc3eab Add short docs for new Spring Data projects
Fixes gh-1011
11 years ago
Dave Syer 49a09c807c Defer SQL initialization to fit with JPA better
Added 2 new spring.datasource.* properties ("data" like
"schema", and "deferDdl" like the "spring.jpa.hibernate.*"
flag). The SQL scripts are then run separately and the "data"
ones are triggered by a new DataSourceInitializedEvent,
which is also published by the Hibernate DDL schema export.

Fixes gh-1006
11 years ago
Phillip Webb 738d195587 Create JMS sub-packages
Reorganize the `jms` package into `hornetq` and `activemq` sub-pacakges.

Fixes gh-1005
11 years ago
Phillip Webb 8aaaaa48a6 Fix broken documentation links 11 years ago
Phillip Webb 0e4b1a4ad0 Add Elasticsearch appendix links
See gh-408
11 years ago
Stephane Nicoll 5a69bb9267 Add HornetQ JMS support
Provide auto-configuration support for HornetQ JMS broker, along with
an additional starter POM.

The connection factory connects to a broker available on the local
machine by default. A configuration switch allows to enable an embedded
mode that starts HornetQ as part of the application.

In such a mode, the spring.hornetq.embedded.* properties provide
additional options to configure the embedded broker. In particular,
message persistence and data directory locations can be specified. It is
also possible to define the queue(s) and topic(s) to create on startup.

Fixes: gh-765
11 years ago
Phillip Webb 11a093bdc0 Polish 11 years ago
Phillip Webb 5df52d3e94 Polish 11 years ago
Dave Syer 5d797ce00f Add spring-boot-groovy-templates to list in docs 11 years ago
Craig Walls 5e1913576e Document Spring Social support 11 years ago
Dave Syer 84633dae00 Clarify in docs that @PropertySource is parsed late
Fixes gh-970
11 years ago
Dave Syer d8eeba98e8 Add JAVA_OPTS advice to some docs 11 years ago
Phillip Webb 3d76d9d73b Merge branch '1.0.x' 11 years ago
Phillip Webb 819b3b9761 Fix JasperInitializerLifecycleListener
Update JasperInitializerLifecycleListener to call JasperInitializer as
a ServletContainerInitializer (not a ServletContextInitializer).

Fixes gh-962
See gh-919
11 years ago
bjornerik 769ffe2834 Missing space destroys formatting in doc 11 years ago
bjornerik 021f8eba03 Missing space destroys formatting in doc 11 years ago
Phillip Webb 0ed4afd647 Fix a couple of velocity documentation issues
Fixes gh-961
11 years ago
Phillip Webb 6381fdcb49 Polish 11 years ago
Stephane Nicoll 96adb87bbd Fix typo
Relates to gh-667
11 years ago
Stephane Nicoll a51739c0e1 Integration tests documentation
This commit clarifies how @IntegrationTest can be used as an
alternative of starting the (web) application prior to running the
tests suite.

Fixes gh-667
11 years ago
Dave Syer 32295b9bdc Add options for Flyway to have its own DataSource
Either set flyway.[url,user,password] or create a DataSource
@Bean and mark it @FlywayDataSource.

Fixes gh-807
11 years ago
Brian Clozel ddbfe187cd Fix table row format in documentation 11 years ago
Phillip Webb a3c359ab84 Remove trailing whitespace 11 years ago
Eric Dahl 3457cc4f39 Fix multiple typos in documentation, as well as "thread.deamon" typo in actuator 11 years ago
Christian Dupuis d20ed65c61 Update docs for new extended health support
fixes #930
11 years ago
Phillip Webb 794808b6b8 Various improvements to the Gradle plugin
Refactor and rework several areas of the Gradle plugin:

- Refactor package structure into functional areas and configure each
  area separately via a new PluginFeatures interface.
- Convert BootRunTask to extend RunTask rather than attempting to
  find existing RunTasks.
- Simplify agent integration by no longer needing specific BootRunTask
  code.
- Update the repackage task to consider the `mainClassName` property
  in addition to `springBoot.mainClass`.
- Automatically set `mainClassName` when calling `run` or `runBoot`
  from `springBoot.mainClass` if there is one.
- Ensure that explicitly defined `main` options on JavaExec tasks always
  take precedence.

Fixes gh-547, gh-820, gh-886, gh-912
11 years ago
Andy Wilkinson d673002c2e Document Solr integration 11 years ago
Dave Syer 0dca2dd978 Small docs tweaks in metrics 11 years ago
Andy Wilkinson 9b1ed5f24e Include GemFire starter in table of first-party starter modules
Closes #911
11 years ago
Andy Wilkinson 75792264c0 Correct the path used to import the dependency versions .adoc file 11 years ago
Andy Wilkinson 8d2da79020 Combine maven-dependency-plugin declarations
Fixes #917
11 years ago
Phillip Webb 94b8b387e8 Fix broken dependencies appendix 11 years ago
Phillip Webb 4fd4744724 Add spring-boot-versions project
Add a new maven project containing a versions.properties file and
an effective POM. Rework existing projects to use the versions
artifacts.

Partially reverts 307fbba9e4

Fixes gh-913
11 years ago
Phillip Webb 8bcda1bcbe Polish 11 years ago
Andy Wilkinson 3328a30b7b Include details of dependency versions in the docs
Closes #637
11 years ago
Dave Syer e118515d7a Use Flyway to bind flyway.*
Since Flyway has bean properties (with getters and setters)
it can be used to bin directly to the Environment (instead of
copying all the properties into FlywayProperties).

Fixes gh-806
11 years ago