7862 Commits

Author SHA1 Message Date
Phillip Webb
8fde088574 Add layered jar layout support to the maven plugin
Update the Maven plugin with a new `LAYERED_JAR` layout option.

See gh-19768
2020-01-15 23:33:29 -08:00
Madhura Bhave
e9d61bac75 Support generation and loading of layered jars
Support an alternative fat jar format that is more amenable to Docker
image layers.

The new format arranges files in the following structure:

	BOOT-INF/
	  layers/
	    <layer-name #1>
	      /classes
	      /lib
	    <layer-name #2>
	      /classes
	      /lib

The `BOOT-INF/layers.idx` file provides the names of the layers and the
order in which they should be added (starting with the least changed).

The `JarLauncher` class can load layered jars in both fat and exploded
forms.

Closes gh-19767

Co-authored-by: Phillip Webb <pwebb@pivotal.io>
2020-01-15 23:32:58 -08:00
Madhura Bhave
45b1ab46c3 Add classpath index support for exploded archives
Update the `Repackager` class so that an additional `classpath.idx` file
is written into the jar that provides the original order of the
classpath. The `JarLauncher` class now uses this file when running as
an exploded archive to ensure that the classpath order is the same as
when running from the far jar.

Closes gh-9128

Co-authored-by: Phillip Webb <pwebb@pivotal.io>
2020-01-15 23:31:17 -08:00
Phillip Webb
ad72f86bdb Polish loader and loader-tools
Polish and refactor `spring-boot-loader` and `spring-boot-loader-tools`
to make it easier to add indexing and layering support.

Closes gh-19766
2020-01-15 23:29:11 -08:00
Andy Wilkinson
56e30258fb Merge branch '2.2.x' 2020-01-15 20:45:42 +00:00
Andy Wilkinson
b7e250eb04 Merge branch '2.1.x' into 2.2.x 2020-01-15 20:45:24 +00:00
Andy Wilkinson
ebebe09a9d Fix file handle leak in JarFileTests
The JarFile was not being closed which linked a file handle and caused
a test failure on Windows.

The local variable has been renamed as, when declared in a
try-with-resources, Checkstyle was confused by the shadowing of the
jarFile field and required references to jarFile within the try-block
the be prefixed with this.

See gh-19595
2020-01-15 20:43:54 +00:00
Andy Wilkinson
18462796bf Upgrade to Spring Kafka 2.3.5
Closes gh-19613
2020-01-15 20:36:13 +00:00
Andy Wilkinson
072b253b14 Upgrade to Spring Integration 5.2.3
Closes gh-19647
2020-01-15 20:35:31 +00:00
Andy Wilkinson
cef9f0f3f5 Upgrade to Spring AMQP 2.2.3
Closes gh-19646
2020-01-15 20:34:06 +00:00
Andy Wilkinson
b982bbec37 Upgrade to Spring Kafka 2.2.12.RELEASE
Closes gh-19761
2020-01-15 19:40:29 +00:00
Andy Wilkinson
5c7bd33fed Upgrade to Spring AMQP 2.1.13
Closes gh-19641
2020-01-15 19:38:48 +00:00
Andy Wilkinson
2e8dc83a80 Upgrade to Spring Data Moore-SR4
Closes gh-19648
2020-01-15 15:09:58 +00:00
Andy Wilkinson
e6fa8530d7 Upgrade to Spring HATEOAS 1.0.3.RELEASE
Closes gh-19644
2020-01-15 15:09:58 +00:00
Andy Wilkinson
6e93ea3631 Upgrade to Spring Retry 1.2.5.RELEASE
Closes gh-19758
2020-01-15 15:09:58 +00:00
Andy Wilkinson
8d4711617f Upgrade to Slf4j 1.7.30
Closes gh-19757
2020-01-15 15:09:58 +00:00
Andy Wilkinson
5083209447 Upgrade to Postgresql 42.2.9
Closes gh-19756
2020-01-15 15:09:58 +00:00
Andy Wilkinson
89c20a3ada Upgrade to Neo4j Ogm 3.2.6
Closes gh-19755
2020-01-15 15:09:58 +00:00
Andy Wilkinson
443d1a6a21 Upgrade to Liquibase 3.8.5
Closes gh-19754
2020-01-15 15:09:58 +00:00
Andy Wilkinson
17d584fd1d Upgrade to Kotlin Coroutines 1.3.3
Closes gh-19753
2020-01-15 14:53:04 +00:00
Andy Wilkinson
57414039e6 Upgrade to Infinispan 9.4.17.Final
Closes gh-19752
2020-01-15 14:53:04 +00:00
Andy Wilkinson
2989af4cee Upgrade to Hibernate 5.4.10.Final
Closes gh-19751
2020-01-15 14:53:04 +00:00
Andy Wilkinson
911d86d232 Upgrade to Elasticsearch 6.8.6
Closes gh-19750
2020-01-15 14:53:04 +00:00
Andy Wilkinson
7ba8eed286 Upgrade to Jetty 9.4.25.v20191220
Closes gh-19749
2020-01-15 14:53:04 +00:00
Andy Wilkinson
570b1ba630 Upgrade to Groovy 2.5.9
Closes gh-19748
2020-01-15 14:53:04 +00:00
Andy Wilkinson
2d461fef37 Upgrade to Awaitility 4.0.2
Closes gh-19747
2020-01-15 14:53:03 +00:00
Andy Wilkinson
3de1abfacf Upgrade to Httpcore 4.4.13
Closes gh-19746
2020-01-15 14:53:03 +00:00
Andy Wilkinson
a77ccf7763 Upgrade to Byte Buddy 1.10.6
Closes gh-19745
2020-01-15 14:53:03 +00:00
Andy Wilkinson
d8645bafcd Upgrade to Mysql 8.0.19
Closes gh-19744
2020-01-15 14:53:03 +00:00
Andy Wilkinson
4df55a64ab Upgrade to Undertow 2.0.29.Final
Closes gh-19743
2020-01-15 14:53:03 +00:00
Andy Wilkinson
073d362078 Upgrade to Rxjava2 2.2.17
Closes gh-19742
2020-01-15 14:53:03 +00:00
Andy Wilkinson
285ae01691 Upgrade to Netty 4.1.45.Final
Closes gh-19741
2020-01-15 14:53:03 +00:00
Andy Wilkinson
d6f93704e9 Upgrade to Dropwizard Metrics 4.1.2
Closes gh-19740
2020-01-15 14:48:21 +00:00
Andy Wilkinson
cb951d1103 Upgrade to Hikaricp 3.4.2
Closes gh-19739
2020-01-15 14:48:19 +00:00
Andy Wilkinson
37e699b391 Upgrade to Unboundid Ldapsdk 4.0.14
Closes gh-19738
2020-01-15 14:48:18 +00:00
Andy Wilkinson
bbcf9e2d9f Upgrade to Okhttp3 3.14.6
Closes gh-19737
2020-01-15 14:48:13 +00:00
Andy Wilkinson
f47a75a9f9 Upgrade to Hazelcast 3.12.5
Closes gh-19736
2020-01-15 14:48:11 +00:00
Andy Wilkinson
1e9afc6482 Upgrade to Jackson 2.10.2
Closes gh-19735
2020-01-15 14:48:10 +00:00
Andy Wilkinson
589c58a21e Upgrade to Spring Retry 1.2.5.RELEASE
Closes gh-19734
2020-01-15 13:12:31 +00:00
Andy Wilkinson
be11ddd4f9 Upgrade to Slf4j 1.7.30
Closes gh-19733
2020-01-15 13:12:31 +00:00
Andy Wilkinson
9989e14b0d Upgrade to Postgresql 42.2.9
Closes gh-19732
2020-01-15 13:12:31 +00:00
Andy Wilkinson
22c127878f Upgrade to Neo4j Ogm 3.1.16
Closes gh-19731
2020-01-15 13:12:31 +00:00
Andy Wilkinson
b63f63ff9d Upgrade to Infinispan 9.4.17.Final
Closes gh-19730
2020-01-15 13:12:31 +00:00
Andy Wilkinson
c52f2828a8 Upgrade to Hibernate 5.3.15.Final
Closes gh-19729
2020-01-15 13:12:31 +00:00
Andy Wilkinson
501f98c25c Upgrade to Jetty 9.4.25.v20191220
Closes gh-19728
2020-01-15 13:12:31 +00:00
Andy Wilkinson
f2e93774e4 Upgrade to Groovy 2.5.9
Closes gh-19727
2020-01-15 13:12:30 +00:00
Andy Wilkinson
8ec2c77b83 Upgrade to Httpcore 4.4.13
Closes gh-19726
2020-01-15 13:12:30 +00:00
Andy Wilkinson
9f979cb03f Upgrade to Mysql 8.0.19
Closes gh-19725
2020-01-15 13:12:30 +00:00
Andy Wilkinson
3f45874245 Upgrade to Undertow 2.0.29.Final
Closes gh-19724
2020-01-15 13:12:30 +00:00
Andy Wilkinson
159be1a78d Upgrade to Rxjava2 2.2.17
Closes gh-19723
2020-01-15 13:12:30 +00:00