Make spring-core optional

It isn't really optional, but no-one uses Spring Retry without it
and some older build systems (Gradle old versions) don't like finding
multiple versions of thw same library.
This commit is contained in:
Dave Syer
2021-01-08 17:31:17 +00:00
parent 6e3fce32b5
commit c0f66e9f59
2 changed files with 3 additions and 1 deletions

View File

@@ -88,7 +88,7 @@ jobs:
- |
rm -rf ~/.m2
ln -s $(pwd)/.m2 ~/.m2
./mvnw install -s .mvn/settings.xml -Dspring.framework.version=5.0.0.RC2
./mvnw install -s .mvn/settings.xml -Dspring.framework.version=5.3.2
params:
TERM: dumb
passphrase: {{passphrase}}

View File

@@ -262,6 +262,8 @@
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId>
<!-- Not really optional, but since it works with 4 and 5 this is safe -->
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.springframework</groupId>