Skip to content

Commit a5f5124

Browse files
committed
Adding javax.annotation-api dependency explicitly
Some integration tests use `@PostConstruct` and the annotation won't be visible by default on JDK9. This commit adds the jar that contains this annotation to restore JDK8's behaviour
1 parent a05dd4a commit a5f5124

File tree

2 files changed

+10
-0
lines changed
  • spring-boot-tools/spring-boot-loader/src/it

2 files changed

+10
-0
lines changed

spring-boot-tools/spring-boot-loader/src/it/executable-props-lib/pom.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,5 +100,10 @@
100100
<artifactId>spring-context</artifactId>
101101
<version>@spring.version@</version>
102102
</dependency>
103+
<dependency>
104+
<groupId>javax.annotation</groupId>
105+
<artifactId>javax.annotation-api</artifactId>
106+
<version>1.2</version>
107+
</dependency>
103108
</dependencies>
104109
</project>

spring-boot-tools/spring-boot-loader/src/it/executable-props/pom.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,5 +88,10 @@
8888
<artifactId>spring-context</artifactId>
8989
<version>@spring.version@</version>
9090
</dependency>
91+
<dependency>
92+
<groupId>javax.annotation</groupId>
93+
<artifactId>javax.annotation-api</artifactId>
94+
<version>1.2</version>
95+
</dependency>
9196
</dependencies>
9297
</project>

0 commit comments

Comments
 (0)