Skip to content

Commit c737c56

Browse files
committed
We can only depend on Hazelcast with Java >= 17
1 parent 84bfd18 commit c737c56

6 files changed

Lines changed: 101 additions & 36 deletions

File tree

core-examples/pom.xml

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,22 @@
3030
<version>2.11.3</version>
3131
</dependency>
3232

33-
<dependency>
34-
<groupId>io.vertx</groupId>
35-
<artifactId>vertx-hazelcast</artifactId>
36-
<version>${project.version}</version>
37-
</dependency>
38-
3933
</dependencies>
4034

35+
<profiles>
36+
<profile>
37+
<id>Java17</id>
38+
<activation>
39+
<jdk>[17,)</jdk>
40+
</activation>
41+
<dependencies>
42+
<dependency>
43+
<groupId>io.vertx</groupId>
44+
<artifactId>vertx-hazelcast</artifactId>
45+
<version>${project.version}</version>
46+
</dependency>
47+
</dependencies>
48+
</profile>
49+
</profiles>
50+
4151
</project>

rxjava-2-examples/pom.xml

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,6 @@
4040
<version>${project.version}</version>
4141
</dependency>
4242

43-
<dependency>
44-
<groupId>io.vertx</groupId>
45-
<artifactId>vertx-hazelcast</artifactId>
46-
<version>${project.version}</version>
47-
</dependency>
48-
4943
<dependency>
5044
<groupId>io.vertx</groupId>
5145
<artifactId>vertx-codegen-api</artifactId>
@@ -116,4 +110,21 @@
116110
</plugins>
117111
</pluginManagement>
118112
</build>
113+
114+
<profiles>
115+
<profile>
116+
<id>Java17</id>
117+
<activation>
118+
<jdk>[17,)</jdk>
119+
</activation>
120+
<dependencies>
121+
<dependency>
122+
<groupId>io.vertx</groupId>
123+
<artifactId>vertx-hazelcast</artifactId>
124+
<version>${project.version}</version>
125+
</dependency>
126+
</dependencies>
127+
</profile>
128+
</profiles>
129+
119130
</project>

rxjava-3-examples/pom.xml

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,6 @@
3535
<version>${project.version}</version>
3636
</dependency>
3737

38-
<dependency>
39-
<groupId>io.vertx</groupId>
40-
<artifactId>vertx-hazelcast</artifactId>
41-
<version>${project.version}</version>
42-
</dependency>
43-
4438
<dependency>
4539
<groupId>io.vertx</groupId>
4640
<artifactId>vertx-rx-gen</artifactId>
@@ -107,4 +101,21 @@
107101
</plugins>
108102
</pluginManagement>
109103
</build>
104+
105+
<profiles>
106+
<profile>
107+
<id>Java17</id>
108+
<activation>
109+
<jdk>[17,)</jdk>
110+
</activation>
111+
<dependencies>
112+
<dependency>
113+
<groupId>io.vertx</groupId>
114+
<artifactId>vertx-hazelcast</artifactId>
115+
<version>${project.version}</version>
116+
</dependency>
117+
</dependencies>
118+
</profile>
119+
</profiles>
120+
110121
</project>

service-proxy-examples/service-consumer/pom.xml

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,6 @@
3232
<version>${project.version}</version>
3333
</dependency>
3434

35-
<dependency>
36-
<groupId>io.vertx</groupId>
37-
<artifactId>vertx-hazelcast</artifactId>
38-
<version>${project.version}</version>
39-
</dependency>
40-
4135
</dependencies>
4236

4337
<build>
@@ -75,4 +69,21 @@
7569
</plugins>
7670

7771
</build>
72+
73+
<profiles>
74+
<profile>
75+
<id>Java17</id>
76+
<activation>
77+
<jdk>[17,)</jdk>
78+
</activation>
79+
<dependencies>
80+
<dependency>
81+
<groupId>io.vertx</groupId>
82+
<artifactId>vertx-hazelcast</artifactId>
83+
<version>${project.version}</version>
84+
</dependency>
85+
</dependencies>
86+
</profile>
87+
</profiles>
88+
7889
</project>

service-proxy-examples/service-provider/pom.xml

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,6 @@
6565
<version>${project.version}</version>
6666
</dependency>
6767

68-
<dependency>
69-
<groupId>io.vertx</groupId>
70-
<artifactId>vertx-hazelcast</artifactId>
71-
<version>${project.version}</version>
72-
</dependency>
73-
7468
</dependencies>
7569

7670
<build>
@@ -141,4 +135,21 @@
141135
</plugins>
142136

143137
</build>
138+
139+
<profiles>
140+
<profile>
141+
<id>Java17</id>
142+
<activation>
143+
<jdk>[17,)</jdk>
144+
</activation>
145+
<dependencies>
146+
<dependency>
147+
<groupId>io.vertx</groupId>
148+
<artifactId>vertx-hazelcast</artifactId>
149+
<version>${project.version}</version>
150+
</dependency>
151+
</dependencies>
152+
</profile>
153+
</profiles>
154+
144155
</project>

web-examples/pom.xml

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -113,12 +113,6 @@
113113
<version>${project.version}</version>
114114
</dependency>
115115

116-
<dependency>
117-
<groupId>io.vertx</groupId>
118-
<artifactId>vertx-hazelcast</artifactId>
119-
<version>${project.version}</version>
120-
</dependency>
121-
122116
<dependency>
123117
<groupId>org.hsqldb</groupId>
124118
<artifactId>hsqldb</artifactId>
@@ -245,4 +239,21 @@
245239
</extension>
246240
</extensions>
247241
</build>
242+
243+
<profiles>
244+
<profile>
245+
<id>Java17</id>
246+
<activation>
247+
<jdk>[17,)</jdk>
248+
</activation>
249+
<dependencies>
250+
<dependency>
251+
<groupId>io.vertx</groupId>
252+
<artifactId>vertx-hazelcast</artifactId>
253+
<version>${project.version}</version>
254+
</dependency>
255+
</dependencies>
256+
</profile>
257+
</profiles>
258+
248259
</project>

0 commit comments

Comments
 (0)