Skip to content

Commit c15eb21

Browse files
committed
Manually stick spring boot to 1.5.x for apollo-client, so that we could compile apollo-client against Java 7
1 parent 39ef9ca commit c15eb21

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

apollo-client/pom.xml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,19 @@
1414
<java.version>1.7</java.version>
1515
<github.path>${project.artifactId}</github.path>
1616
</properties>
17+
<dependencyManagement>
18+
<dependencies>
19+
<!-- Spring Boot 2 requires Java 8, so we need to manually stick to 1.5.x version in order to compile apollo-client against Java 7 -->
20+
<!-- This is only for apollo-client compilation use, because optional Spring dependencies are not transitive -->
21+
<dependency>
22+
<groupId>org.springframework.boot</groupId>
23+
<artifactId>spring-boot-dependencies</artifactId>
24+
<version>1.5.16.RELEASE</version>
25+
<type>pom</type>
26+
<scope>import</scope>
27+
</dependency>
28+
</dependencies>
29+
</dependencyManagement>
1730
<dependencies>
1831
<!-- apollo -->
1932
<dependency>

0 commit comments

Comments
 (0)