|
4 | 4 |
|
5 | 5 | <groupId>io.jromanmartin.kafka</groupId> |
6 | 6 | <artifactId>kafka-clients-quarkus-sample</artifactId> |
7 | | - <version>1.0.0-SNAPSHOT</version> |
| 7 | + <version>2.0.0-SNAPSHOT</version> |
8 | 8 | <packaging>jar</packaging> |
9 | 9 |
|
10 | 10 | <dependencyManagement> |
|
23 | 23 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
24 | 24 | <maven.compiler.source>11</maven.compiler.source> |
25 | 25 | <maven.compiler.target>11</maven.compiler.target> |
| 26 | + <maven.compiler.parameters>true</maven.compiler.parameters> |
| 27 | + <compiler-plugin.version>3.8.1</compiler-plugin.version> |
| 28 | + <surefire-plugin.version>3.0.0-M5</surefire-plugin.version> |
26 | 29 | <!-- Kafka Clients --> |
27 | | - <kafka-clients.version>2.5.0</kafka-clients.version> |
| 30 | + <kafka-clients.version>2.7.0</kafka-clients.version> |
28 | 31 | <!-- Avro --> |
29 | | - <avro.version>1.10.1</avro.version> |
| 32 | + <avro.version>1.10.2</avro.version> |
30 | 33 | <!-- Apicurio Registry --> |
31 | | - <apicurio.version>1.3.2.Final</apicurio.version> |
32 | | - <!--<apicurio.registry.url>http://localhost:8080/api</apicurio.registry.url>--> |
33 | | - <!-- <apicurio.registry.url>http://service-registry.amq-streams-demo.apps-crc.testing/api</apicurio.registry.url>--> |
34 | | - <apicurio.registry.url>http://service-registry.amq-streams-demo.apps.selae.sandbox1805.opentlc.com/api</apicurio.registry.url> |
| 34 | + <apicurio.version>2.0.1.Final</apicurio.version> |
| 35 | + <!--<apicurio.registry.url>http://localhost:8080/apis/registry/v2</apicurio.registry.url>--> |
| 36 | + <apicurio.registry.url>http://service-registry.amq-streams-demo.apps-crc.testing/apis/registry/v2</apicurio.registry.url> |
35 | 37 | <!-- JKube --> |
36 | 38 | <jkube.enricher.jkube-service.type>NodePort</jkube.enricher.jkube-service.type> |
37 | 39 | <jkube.generator.name>${project.artifactId}:${project.version}</jkube.generator.name> |
38 | 40 | <jkube.generator.quarkus.webPort>8181</jkube.generator.quarkus.webPort> |
39 | 41 | <!-- Quarkus --> |
40 | | - <quarkus.platform.version>1.10.5.Final</quarkus.platform.version> |
41 | | - <!-- Quarkus Extensions --> |
42 | | - <quarkiverse.apicurio.version>0.0.1</quarkiverse.apicurio.version> |
| 42 | + <quarkus.platform.version>1.13.7.Final</quarkus.platform.version> |
43 | 43 | </properties> |
44 | 44 |
|
45 | 45 | <dependencies> |
|
83 | 83 | <artifactId>quarkus-avro</artifactId> |
84 | 84 | </dependency> |
85 | 85 |
|
86 | | - <dependency> |
87 | | - <groupId>io.quarkiverse.apicurio</groupId> |
88 | | - <artifactId>quarkiverse-apicurio-registry-client</artifactId> |
89 | | - <version>${quarkiverse.apicurio.version}</version> |
90 | | - </dependency> |
91 | | - |
92 | 86 | <!-- Apicurio Serializers/Deserializers --> |
93 | 87 | <dependency> |
94 | 88 | <groupId>io.apicurio</groupId> |
95 | | - <artifactId>apicurio-registry-utils-serde</artifactId> |
| 89 | + <artifactId>apicurio-registry-serdes-avro-serde</artifactId> |
96 | 90 | <version>${apicurio.version}</version> |
97 | | - <exclusions> |
98 | | - <exclusion> |
99 | | - <groupId>org.jboss.spec.javax.interceptor</groupId> |
100 | | - <artifactId>jboss-interceptors-api_1.2_spec</artifactId> |
101 | | - </exclusion> |
102 | | - </exclusions> |
103 | 91 | </dependency> |
104 | 92 |
|
105 | 93 | <!-- Test Dependencies --> |
|
115 | 103 | <executions> |
116 | 104 | <execution> |
117 | 105 | <goals> |
| 106 | + <goal>build</goal> |
118 | 107 | <goal>generate-code</goal> |
119 | 108 | <goal>generate-code-tests</goal> |
120 | | - <goal>build</goal> |
121 | 109 | </goals> |
122 | 110 | </execution> |
123 | 111 | </executions> |
124 | 112 | </plugin> |
125 | 113 |
|
| 114 | + <plugin> |
| 115 | + <artifactId>maven-compiler-plugin</artifactId> |
| 116 | + <version>${compiler-plugin.version}</version> |
| 117 | + <configuration> |
| 118 | + <parameters>${maven.compiler.parameters}</parameters> |
| 119 | + </configuration> |
| 120 | + </plugin> |
| 121 | + <plugin> |
| 122 | + <artifactId>maven-surefire-plugin</artifactId> |
| 123 | + <version>${surefire-plugin.version}</version> |
| 124 | + <configuration> |
| 125 | + <systemPropertyVariables> |
| 126 | + <java.util.logging.manager>org.jboss.logmanager.LogManager</java.util.logging.manager> |
| 127 | + <maven.home>${maven.home}</maven.home> |
| 128 | + </systemPropertyVariables> |
| 129 | + </configuration> |
| 130 | + </plugin> |
| 131 | + |
126 | 132 | <!-- Avro Maven Plug-In to generate classes from schemas (files *.avsc) --> |
127 | 133 | <plugin> |
128 | 134 | <groupId>org.apache.avro</groupId> |
|
153 | 159 | <plugin> |
154 | 160 | <groupId>org.codehaus.mojo</groupId> |
155 | 161 | <artifactId>build-helper-maven-plugin</artifactId> |
156 | | - <version>3.1.0</version> |
| 162 | + <version>3.2.0</version> |
157 | 163 | <executions> |
158 | 164 | <execution> |
| 165 | + <id>add-source</id> |
159 | 166 | <!-- Added the generated source folder as source path to compile classes --> |
160 | 167 | <phase>generate-sources</phase> |
161 | 168 | <goals> |
|
174 | 181 | </build> |
175 | 182 |
|
176 | 183 | <profiles> |
| 184 | + <!-- Apicurio Registry --> |
177 | 185 | <profile> |
178 | 186 | <id>apicurio</id> |
179 | 187 | <build> |
|
190 | 198 | </goals> |
191 | 199 | <configuration> |
192 | 200 | <registryUrl>${apicurio.registry.url}</registryUrl> |
193 | | - <artifactType>AVRO</artifactType> |
194 | 201 | <artifacts> |
195 | | - <!-- Schema definition for RecordIdStrategy strategy --> |
196 | | - <io.jromanmartin.kafka.schema.avro.Message>${project.basedir}/src/main/resources/schemas/message.avsc</io.jromanmartin.kafka.schema.avro.Message> |
197 | | - <!-- Online --> |
198 | 202 | <!-- Schema definition for SimpleTopicIdStrategy strategy --> |
199 | | - <messages>${project.basedir}/src/main/resources/schemas/message.avsc</messages> |
| 203 | + <artifact> |
| 204 | + <groupId>default</groupId> |
| 205 | + <artifactId>messages</artifactId> |
| 206 | + <type>AVRO</type> |
| 207 | + <file> |
| 208 | + ${project.basedir}/src/main/resources/schemas/message.avsc |
| 209 | + </file> |
| 210 | + <ifExists>RETURN_OR_UPDATE</ifExists> |
| 211 | + <canonicalize>true</canonicalize> |
| 212 | + </artifact> |
| 213 | + |
200 | 214 | <!-- Schema definition for TopicIdStrategy strategy --> |
201 | | - <messages-value>${project.basedir}/src/main/resources/schemas/message.avsc</messages-value> |
202 | | - <!-- Schema definition for TopicRecordIdStrategystrategy --> |
203 | | - <messages-io.jromanmartin.kafka.schema.avro.Message>${project.basedir}/src/main/resources/schemas/message.avsc</messages-io.jromanmartin.kafka.schema.avro.Message> |
| 215 | + <artifact> |
| 216 | + <groupId>default</groupId> |
| 217 | + <artifactId>messages-value</artifactId> |
| 218 | + <type>AVRO</type> |
| 219 | + <file> |
| 220 | + ${project.basedir}/src/main/resources/schemas/message.avsc |
| 221 | + </file> |
| 222 | + <ifExists>RETURN_OR_UPDATE</ifExists> |
| 223 | + <canonicalize>true</canonicalize> |
| 224 | + </artifact> |
| 225 | + |
| 226 | + <!-- Schema definition for RecordIdStrategy strategy --> |
| 227 | + <artifact> |
| 228 | + <groupId>io.jromanmartin.kafka.schema.avro</groupId> |
| 229 | + <artifactId>Message</artifactId> |
| 230 | + <type>AVRO</type> |
| 231 | + <file> |
| 232 | + ${project.basedir}/src/main/resources/schemas/message.avsc |
| 233 | + </file> |
| 234 | + <ifExists>RETURN_OR_UPDATE</ifExists> |
| 235 | + <canonicalize>true</canonicalize> |
| 236 | + </artifact> |
204 | 237 | </artifacts> |
205 | 238 | </configuration> |
206 | 239 | </execution> |
|
218 | 251 | <plugin> |
219 | 252 | <groupId>org.eclipse.jkube</groupId> |
220 | 253 | <artifactId>openshift-maven-plugin</artifactId> |
221 | | - <version>1.0.2</version> |
| 254 | + <version>1.3.0</version> |
222 | 255 | </plugin> |
223 | 256 | </plugins> |
224 | 257 | </build> |
|
232 | 265 | <plugin> |
233 | 266 | <groupId>org.eclipse.jkube</groupId> |
234 | 267 | <artifactId>kubernetes-maven-plugin</artifactId> |
235 | | - <version>1.0.2</version> |
| 268 | + <version>1.3.0</version> |
236 | 269 | </plugin> |
237 | 270 | </plugins> |
238 | 271 | </build> |
|
250 | 283 | <plugins> |
251 | 284 | <plugin> |
252 | 285 | <artifactId>maven-failsafe-plugin</artifactId> |
253 | | - <version>3.0.0-M5</version> |
| 286 | + <version>${surefire-plugin.version}</version> |
254 | 287 | <executions> |
255 | 288 | <execution> |
256 | 289 | <goals> |
|
262 | 295 | <native.image.path> |
263 | 296 | ${project.build.directory}/${project.build.finalName}-runner |
264 | 297 | </native.image.path> |
265 | | - <java.util.logging.manager>org.jboss.logmanager.LogManager |
| 298 | + <java.util.logging.manager> |
| 299 | + org.jboss.logmanager.LogManager |
266 | 300 | </java.util.logging.manager> |
267 | | - <!--<maven.home>${maven.home}</maven.home>--> |
| 301 | + <maven.home>${maven.home}</maven.home> |
268 | 302 | </systemPropertyVariables> |
269 | 303 | </configuration> |
270 | 304 | </execution> |
|
0 commit comments