spring-boot/spring-boot-tools
Andy Wilkinson 3bfc6b1a4b Avoid packaging two versions of same dependency in Gradle repackaging
Previously, the Gradle plugin would include all of the dependencies
from both the compile and runtime configurations in the repackaged
jar. In the unlikely event that the compile and runtime configurations
contained different versions of the same dependency, this would lead
to both versions of the dependency being packaged in the jar file.

The runtime configuration extends the compile configuration so, in
normal circumstances, it will contain a superset of the compile
configuration's dependencies. In the situation described above where
the two configurations contain different versions of the same
dependency the runtime configuration will only contain whichever
version of the two dependencies has "won". By default, this will
be the dependency with the higher version.

This commit updates the Gradle plugin to only include the runtime
configuration's resolved dependencies during repackaging. As explained
above, the runtime configuration extends the compile configuration so
any compile dependencies will still be included, with the added
benefit that duplicate versions of the same dependency will have been
resolved to a single, preferred version.

Closes gh-5749
2016-04-21 11:37:40 +01:00
..
spring-boot-antlib Next Development Version 2016-02-26 01:06:16 -08:00
spring-boot-configuration-metadata Remove the second parameter of substring() if possible 2016-04-20 09:18:35 +02:00
spring-boot-configuration-processor Remove the second parameter of substring() if possible 2016-04-20 09:18:35 +02:00
spring-boot-gradle-plugin Avoid packaging two versions of same dependency in Gradle repackaging 2016-04-21 11:37:40 +01:00
spring-boot-loader Reduce churn when parsing Jar files 2016-04-12 13:25:04 -07:00
spring-boot-loader-tools Polish 2016-04-12 13:23:43 -07:00
spring-boot-maven-plugin Remove the second parameter of substring() if possible 2016-04-20 09:18:35 +02:00
pom.xml Next Development Version 2016-02-26 01:06:16 -08:00