Commit Graph

12499 Commits

Author SHA1 Message Date
Andy Wilkinson c59214792b Verify that bootJar and bootWar handle duplicates gracefully
Closes gh-9573
2017-06-22 11:45:10 -07:00
Andy Wilkinson f0b7e7cf56 Ensure that fat jars and wars do not corrupt UTF-8 entry names
Previously, both Repackager and the Grade plugin used the JRE's
standard ZipOutputStream when creating a fat jar or war file. This
resulted in entry names that needed UTF-8 encoding to become
corrupted.

This commit updates both to use Commons Compress'
ZipArchiveOutputStream and to configure the stream's encoding and
each entry's Unix mode. This ensures that names are encoded using
UTF-8 and can be read back in correctly by common zip tools.

Closes gh-9405
2017-06-22 11:45:10 -07:00
Stephane Nicoll 885e29934b Clean HibernateJpaAutoConfigurationTests
This commit makes sure that each test runs with the proper datasource
auto-configuration and with an isolated embedded database. This allows
to restrict each test to only what it is supposed to do (rather than
disabling initialization to work around the fact that database is not
in a proper state because it is shared).

Closes gh-9579
2017-06-22 17:47:35 +02:00
Stephane Nicoll 235daf839f Merge branch '1.5.x' 2017-06-22 10:49:14 +02:00
Stephane Nicoll d77056639d Add a warning about fully executable archive
Closes gh-9574
2017-06-22 10:49:01 +02:00
Stephane Nicoll 5c9f10b79c Merge pull request #9561 from eddumelendez:gh-8137
* pr/9561:
  Improve sample to use fragment expression by thymeleaf 3
2017-06-22 09:51:40 +02:00
Eddú Meléndez b1f96a4641 Improve sample to use fragment expression by thymeleaf 3
Avoid repeated title text making use of capabilities in thymeleaf 3.

Closes gh-9561
2017-06-22 09:50:28 +02:00
Stephane Nicoll aac80e0b02 Polish
Closes gh-9570
2017-06-22 09:33:45 +02:00
Stephane Nicoll beb72ca8ee Merge branch '1.5.x' 2017-06-22 09:31:04 +02:00
Stephane Nicoll b037d7a4cb Polish 2017-06-22 09:29:47 +02:00
Stephane Nicoll 0aabe38479 Merge pull request #9570 from izeye:polish-20170622
* pr/9570:
  Polish
2017-06-22 09:29:16 +02:00
Johnny Lim 8ca70a7efd Polish
See gh-9570
2017-06-22 09:28:49 +02:00
Stephane Nicoll 0d3a79aaa3 Merge pull request #9567 from eddumelendez:gh-7325
* pr/9567:
  Polish "Add prefix to all properties in maven plugin"
  Add prefix to all properties in maven plugin
2017-06-22 09:14:11 +02:00
Stephane Nicoll e230952dd2 Polish "Add prefix to all properties in maven plugin"
Closes gh-9567
2017-06-22 09:13:44 +02:00
Eddú Meléndez 4510be0f8f Add prefix to all properties in maven plugin
This commit add prefix `spring-boot` to all Mojo's properties.

See gh-9567
2017-06-22 09:13:44 +02:00
Andy Wilkinson 39c1757a96 Merge branch '1.5.x' 2017-06-21 14:31:21 -07:00
Andy Wilkinson 7a04708c41 Make sure the HealthMvcEndpoint is thread-safe
Previously, HealthMvcEndpoint stored the cached Health and its last
access time in two separate fields. Neither field was volatile and
no synchronization was used. This meant that there were potential
visibility problems. In a possible worst case scenario one field may
see the updated access time but an old health so it would incorrectly
believe that the old health was up-to-date and return it.

This commit reworks the endpoint to store the cached health and the
time at which it was created in a single, volatile field. This ensures
that the cached health and its creation time will be visible across
threads. Note that a race between threads when the cache is stale is
still possible. This race may result in multiple calls to the
delegate but these should be harmless.

Closes gh-9454
2017-06-21 14:19:10 -07:00
Andy Wilkinson b41c5d6a9a Merge branch '1.5.x' 2017-06-21 12:53:00 -07:00
Andy Wilkinson e6a3ca5da6 Address deprecation warning that's generated by Gradle 4.x
In Gradle 4.x, SourceSetOutput now has multiple classes directories
and getClassesDir() has been deprecated. This commit introduces the
use of reflection to use getClassesDirs() when it's available rather
than getClassesDir().

Closes gh-9559
2017-06-21 12:52:05 -07:00
Andy Wilkinson cfaf5700a7 Upgrade to Jackson 2.9.0.pr4
Closes gh-9563
2017-06-21 06:22:59 -07:00
Andy Wilkinson 5e9437bd81 Start building against Spring Data Kay snapshots
See gh-9569
2017-06-21 06:22:59 -07:00
Stephane Nicoll 6aec6d68f6 Upgrade to Groovy 2.5.0-beta-1
Closes gh-9564
2017-06-21 10:16:04 +02:00
Stephane Nicoll cabe59d65a Remove animal sniffer
See gh-9564
2017-06-21 10:10:02 +02:00
Stephane Nicoll 75274d3024 Merge branch '1.5.x' 2017-06-20 14:48:04 +02:00
Stephane Nicoll fc57a0eddc Merge pull request #9544 from htynkn:feature/use-getUsableSpace-in-DiskSpaceHealthIndicator
* pr/9544:
  Polish "Use getUsableSpace() in DiskSpaceHealthIndicator"
  Use getUsableSpace() in DiskSpaceHealthIndicator
2017-06-20 14:47:52 +02:00
Stephane Nicoll 3f70638f1c Polish "Use getUsableSpace() in DiskSpaceHealthIndicator"
Closes gh-9544
2017-06-20 14:44:11 +02:00
Huang YunKun 158416fdd0 Use getUsableSpace() in DiskSpaceHealthIndicator
See gh-9544
2017-06-20 14:43:38 +02:00
Stephane Nicoll 35d062f50d Alias spring.datasource.name to Hikari's poolName property
Closes gh-9547
2017-06-20 14:30:18 +02:00
Stephane Nicoll 78a9ace582 Polish 2017-06-20 11:58:51 +02:00
Stephane Nicoll 03b43225b8 Allow Hikari to export MBeans on the auto-configured datasource
This commit makes sure that if the `register-mbeans` property of the
Hikary datasource config is set, Spring Boot doesn't attempt to expose
the mbean again.

Closes gh-5114
2017-06-20 11:49:19 +02:00
Brian Clozel e4c4251f61 Switch back to Spring Framework 5.0.0 SNAPSHOTS 2017-06-20 10:17:15 +02:00
Andy Wilkinson 49a62a7c33 Correct the scope of the spring-boot-test-support dependency
Closes gh-9550
2017-06-19 11:36:05 +01:00
Stephane Nicoll 0adeb1da2c Merge pull request #8534 from eddumelendez:gh-8411
* pr/8534:
  Polish
  Polish "Add support for CustomConversions with Cassandra"
  Add support for CustomConversions with Cassandra
2017-06-19 08:38:35 +02:00
Stephane Nicoll 2916cdf953 Polish 2017-06-19 08:38:04 +02:00
Stephane Nicoll 49797b1153 Polish "Add support for CustomConversions with Cassandra"
Closes gh-8534
2017-06-19 08:28:24 +02:00
Eddú Meléndez 744a1ed497 Add support for CustomConversions with Cassandra
This commit add the support for CustomConversions in
spring-data-cassandra. To customize, bean just need to be declared and
it will be auto-configured.

See gh-8534
2017-06-19 08:28:23 +02:00
Stephane Nicoll 7f7c60610c Merge branch '1.5.x' 2017-06-17 10:40:36 +02:00
Stephane Nicoll 3ead213c7d Merge pull request #9539 from dsyer:1.5.x
* pr/9539:
  Upgrade to Spring Retry 1.2.1
2017-06-17 10:38:58 +02:00
Dave Syer f4a475cef8 Upgrade to Spring Retry 1.2.1
Closes gh-9539
2017-06-17 10:38:34 +02:00
Madhura Bhave fce299c1c1 Merge branch '1.5.x' 2017-06-16 11:38:18 -07:00
Madhura Bhave e437c4cd67 OAuth2ClientIdCondition should not match if clientId absent
Fixes gh-9435
2017-06-16 10:55:49 -07:00
Stephane Nicoll 350c701da3 Polish 2017-06-16 15:48:36 +02:00
Andy Wilkinson 2ffe480490 Polish 2017-06-16 09:24:56 +01:00
Andy Wilkinson cbae31364f Suppress deprecation warning from LettuceConnectionFactory
See gh-9538
2017-06-16 09:21:59 +01:00
Andy Wilkinson 991314c63d Merge branch '1.5.x' 2017-06-16 09:13:42 +01:00
Andy Wilkinson 59122358d3 Clean up and format code 2017-06-16 08:58:14 +01:00
Stephane Nicoll 573007166c Remove version of override for resources plugin
Closes gh-9537
2017-06-16 09:54:30 +02:00
Stephane Nicoll d559f7a5bb Harmonize key description
See gh-9374
2017-06-16 09:38:46 +02:00
Stephane Nicoll 4d6965a147 Polish 2017-06-16 09:26:09 +02:00
Stephane Nicoll 2dcb441745 Upgrade to Spring Integration 5.0.0 M5
Closes gh-9287
2017-06-16 09:06:29 +02:00