Skip to content

Commit c3a732c

Browse files
committed
#555 - Upgrade Java versions.
Add build profile for Java 14. Allow failures for Java 15 as we carry dependencies that do not support newer class files. Enable preview features for Java 13-15. Add javax.annotation to Java 9+ profile. Disable geode examples on Java 13+ as test utilities do not propagate feature preview flag until spring-projects/spring-test-data-geode#18 is resolved.
1 parent 54f7146 commit c3a732c

File tree

2 files changed

+119
-3
lines changed

2 files changed

+119
-3
lines changed

Diff for: .travis.yml

+5
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,14 @@ matrix:
1010
before_install: wget https://github.com/sormuras/bach/raw/master/install-jdk.sh && . ./install-jdk.sh -f 12
1111
- env: JDK='OpenJDK 13'
1212
before_install: wget https://github.com/sormuras/bach/raw/master/install-jdk.sh && . ./install-jdk.sh -f 13
13+
- env: JDK='OpenJDK 14'
14+
before_install: wget https://github.com/sormuras/bach/raw/master/install-jdk.sh && . ./install-jdk.sh -f 14
1315
- env: JDK='OpenJDK EA'
1416
before_install: wget https://github.com/sormuras/bach/raw/master/install-jdk.sh && . ./install-jdk.sh
1517

18+
allow_failures:
19+
- env: JDK='OpenJDK EA'
20+
1621
addons:
1722
apt:
1823
sources:

Diff for: pom.xml

+114-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2-
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
1+
<project xmlns="http://maven.apache.org/POM/4.0.0"
2+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
34
<modelVersion>4.0.0</modelVersion>
45

56
<groupId>org.springframework.data.examples</groupId>
@@ -19,7 +20,6 @@
1920
<module>bom</module>
2021
<module>couchbase</module>
2122
<module>elasticsearch</module>
22-
<module>geode</module>
2323
<module>jdbc</module>
2424
<module>jpa</module>
2525
<module>ldap</module>
@@ -69,6 +69,22 @@
6969
<!-- Embedded Cassandra (cassandra-all) is not compatible with Java runtime 9 and higher.
7070
See https://issues.apache.org/jira/browse/CASSANDRA-9608 -->
7171
<module>cassandra</module>
72+
<module>geode</module>
73+
</modules>
74+
</profile>
75+
76+
<profile>
77+
<id>java11</id>
78+
79+
<activation>
80+
<jdk>11</jdk>
81+
</activation>
82+
83+
<modules>
84+
85+
<!-- Embedded Cassandra (cassandra-all) is not compatible with Java runtime 9 and higher.
86+
See https://issues.apache.org/jira/browse/CASSANDRA-9608 -->
87+
<module>geode</module>
7288
</modules>
7389
</profile>
7490

@@ -84,9 +100,104 @@
84100
<groupId>javax.xml.bind</groupId>
85101
<artifactId>jaxb-api</artifactId>
86102
</dependency>
103+
<dependency>
104+
<groupId>javax.annotation</groupId>
105+
<artifactId>javax.annotation-api</artifactId>
106+
</dependency>
87107
</dependencies>
88108
</profile>
89109

110+
<profile>
111+
<id>java-13+</id>
112+
113+
<activation>
114+
<jdk>[13,)</jdk>
115+
</activation>
116+
117+
<build>
118+
<plugins>
119+
<plugin>
120+
<artifactId>maven-surefire-plugin</artifactId>
121+
<configuration>
122+
<argLine>--enable-preview</argLine>
123+
</configuration>
124+
</plugin>
125+
<plugin>
126+
<artifactId>maven-failsafe-plugin</artifactId>
127+
<configuration>
128+
<argLine>--enable-preview</argLine>
129+
</configuration>
130+
</plugin>
131+
</plugins>
132+
</build>
133+
</profile>
134+
135+
<profile>
136+
<id>java-13</id>
137+
138+
<activation>
139+
<jdk>13</jdk>
140+
</activation>
141+
142+
<build>
143+
<plugins>
144+
<plugin>
145+
<artifactId>maven-compiler-plugin</artifactId>
146+
<configuration>
147+
<release>13</release>
148+
<compilerArgs>
149+
--enable-preview
150+
</compilerArgs>
151+
</configuration>
152+
</plugin>
153+
</plugins>
154+
</build>
155+
</profile>
156+
157+
<profile>
158+
<id>java-14</id>
159+
160+
<activation>
161+
<jdk>14</jdk>
162+
</activation>
163+
164+
<build>
165+
<plugins>
166+
<plugin>
167+
<artifactId>maven-compiler-plugin</artifactId>
168+
<configuration>
169+
<release>14</release>
170+
<compilerArgs>
171+
--enable-preview
172+
</compilerArgs>
173+
</configuration>
174+
</plugin>
175+
</plugins>
176+
</build>
177+
</profile>
178+
179+
<profile>
180+
<id>java-15</id>
181+
182+
<activation>
183+
<jdk>15</jdk>
184+
</activation>
185+
186+
<build>
187+
<plugins>
188+
<plugin>
189+
<artifactId>maven-compiler-plugin</artifactId>
190+
<configuration>
191+
<release>15</release>
192+
<compilerArgs>
193+
--enable-preview
194+
</compilerArgs>
195+
</configuration>
196+
</plugin>
197+
</plugins>
198+
</build>
199+
</profile>
200+
90201
</profiles>
91202

92203
<developers>

0 commit comments

Comments
 (0)