|
2 | 2 | <modelVersion>4.0.0</modelVersion> |
3 | 3 | <groupId>fi.hsl</groupId> |
4 | 4 | <artifactId>transitdata-common</artifactId> |
5 | | - <version>2.0.5</version> |
| 5 | + <version>3.0.0</version> |
6 | 6 | <packaging>jar</packaging> |
7 | 7 | <name>Common utilities for Transitdata projects</name> |
| 8 | + |
8 | 9 | <properties> |
9 | 10 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
10 | | - <maven.compiler.source>11</maven.compiler.source> |
11 | | - <maven.compiler.target>11</maven.compiler.target> |
| 11 | + <java.version>25</java.version> |
12 | 12 | <pulsar.version>3.0.7</pulsar.version> |
13 | 13 | <testcontainers.version>1.18.3</testcontainers.version> |
14 | 14 | <spotlessMavenPlugin.version>2.43.0</spotlessMavenPlugin.version> |
15 | | - <googleJavaFormat.version>1.17.0</googleJavaFormat.version> |
| 15 | + <googleJavaFormat.version>1.23.0</googleJavaFormat.version> |
| 16 | + <jackson.version>2.20.1</jackson.version> |
16 | 17 | </properties> |
17 | 18 |
|
18 | 19 | <profiles> |
19 | | - <!-- The Configuration of the unit-test profile --> |
20 | 20 | <profile> |
21 | 21 | <id>unit-test</id> |
22 | 22 | <activation> |
23 | 23 | <activeByDefault>true</activeByDefault> |
24 | 24 | </activation> |
25 | 25 | <properties> |
26 | | - <!-- |
27 | | - Build profile for unit tests. |
28 | | - Usage: mvn test -P unit-test |
29 | | - --> |
30 | 26 | <build.profile.id>unit-test</build.profile.id> |
31 | 27 | <skip.integration.tests>true</skip.integration.tests> |
32 | 28 | <skip.unit.tests>false</skip.unit.tests> |
33 | 29 | </properties> |
34 | 30 | </profile> |
35 | | - <!-- The Configuration of the integration-test profile --> |
| 31 | + |
36 | 32 | <profile> |
37 | 33 | <id>integration-test</id> |
38 | 34 | <properties> |
39 | | - <!-- |
40 | | - Build profile for integration tests. |
41 | | - Usage: mvn verify -P integration-test |
42 | | - --> |
43 | 35 | <build.profile.id>integration-test</build.profile.id> |
44 | 36 | <skip.integration.tests>false</skip.integration.tests> |
45 | 37 | <skip.unit.tests>true</skip.unit.tests> |
|
61 | 53 | <artifactId>protobuf-java</artifactId> |
62 | 54 | <version>3.21.12</version> |
63 | 55 | </dependency> |
64 | | - |
65 | 56 | <dependency> |
66 | | - <groupId>com.dslplatform</groupId> |
67 | | - <artifactId>dsl-json-java8</artifactId> |
68 | | - <version>1.10.0</version> |
| 57 | + <groupId>com.fasterxml.jackson.core</groupId> |
| 58 | + <artifactId>jackson-databind</artifactId> |
| 59 | + <version>${jackson.version}</version> |
| 60 | + </dependency> |
| 61 | + <dependency> |
| 62 | + <groupId>com.fasterxml.jackson.core</groupId> |
| 63 | + <artifactId>jackson-core</artifactId> |
| 64 | + <version>${jackson.version}</version> |
| 65 | + </dependency> |
| 66 | + <dependency> |
| 67 | + <groupId>com.fasterxml.jackson.core</groupId> |
| 68 | + <artifactId>jackson-annotations</artifactId> |
| 69 | + <version>2.20</version> |
| 70 | + </dependency> |
| 71 | + <dependency> |
| 72 | + <groupId>com.fasterxml.jackson.datatype</groupId> |
| 73 | + <artifactId>jackson-datatype-jsr310</artifactId> |
| 74 | + <version>${jackson.version}</version> |
69 | 75 | </dependency> |
70 | | - |
71 | 76 | <dependency> |
72 | 77 | <groupId>org.apache.pulsar</groupId> |
73 | 78 | <artifactId>pulsar-client</artifactId> |
74 | 79 | <version>${pulsar.version}</version> |
75 | 80 | </dependency> |
76 | | - |
77 | 81 | <dependency> |
78 | 82 | <groupId>org.apache.pulsar</groupId> |
79 | 83 | <artifactId>pulsar-client-admin</artifactId> |
80 | 84 | <version>${pulsar.version}</version> |
81 | 85 | </dependency> |
82 | | - |
83 | 86 | <dependency> |
84 | 87 | <groupId>redis.clients</groupId> |
85 | 88 | <artifactId>jedis</artifactId> |
86 | 89 | <version>4.4.3</version> |
87 | | - <type>jar</type> |
88 | | - <scope>compile</scope> |
89 | 90 | </dependency> |
90 | | - |
91 | 91 | <dependency> |
92 | 92 | <groupId>com.typesafe</groupId> |
93 | 93 | <artifactId>config</artifactId> |
94 | 94 | <version>1.4.2</version> |
95 | 95 | </dependency> |
96 | | - |
97 | 96 | <dependency> |
98 | 97 | <groupId>ch.qos.logback</groupId> |
99 | 98 | <artifactId>logback-classic</artifactId> |
100 | 99 | <version>1.4.7</version> |
101 | 100 | </dependency> |
102 | | - |
103 | 101 | <dependency> |
104 | 102 | <groupId>ch.qos.logback.contrib</groupId> |
105 | 103 | <artifactId>logback-json-classic</artifactId> |
106 | 104 | <version>0.1.5</version> |
107 | 105 | </dependency> |
108 | | - |
109 | 106 | <dependency> |
110 | 107 | <groupId>ch.qos.logback.contrib</groupId> |
111 | 108 | <artifactId>logback-jackson</artifactId> |
112 | 109 | <version>0.1.5</version> |
113 | 110 | </dependency> |
114 | | - |
115 | 111 | <dependency> |
116 | 112 | <groupId>org.slf4j</groupId> |
117 | 113 | <artifactId>slf4j-api</artifactId> |
118 | 114 | <version>2.0.7</version> |
119 | 115 | </dependency> |
120 | | - |
121 | | - <dependency> |
122 | | - <groupId>com.fasterxml.jackson.core</groupId> |
123 | | - <artifactId>jackson-databind</artifactId> |
124 | | - <version>2.15.0</version> |
125 | | - </dependency> |
126 | | - |
127 | 116 | <dependency> |
128 | 117 | <groupId>org.jetbrains</groupId> |
129 | 118 | <artifactId>annotations</artifactId> |
130 | 119 | <version>24.0.1</version> |
131 | 120 | </dependency> |
132 | | - |
133 | 121 | <dependency> |
134 | 122 | <groupId>junit</groupId> |
135 | 123 | <artifactId>junit</artifactId> |
136 | 124 | <version>4.13.2</version> |
137 | 125 | <scope>test</scope> |
138 | 126 | </dependency> |
139 | | - |
140 | 127 | <dependency> |
141 | 128 | <groupId>org.testcontainers</groupId> |
142 | 129 | <artifactId>testcontainers</artifactId> |
|
149 | 136 | <version>${testcontainers.version}</version> |
150 | 137 | <scope>test</scope> |
151 | 138 | </dependency> |
152 | | - |
153 | 139 | </dependencies> |
154 | 140 |
|
155 | 141 | <build> |
156 | 142 | <finalName>${project.artifactId}-${project.version}</finalName> |
| 143 | + |
157 | 144 | <resources> |
158 | 145 | <resource> |
159 | 146 | <directory>src/main/resources</directory> |
160 | 147 | <filtering>true</filtering> |
161 | 148 | <excludes> |
162 | | - <!-- exclude logback.xml so that we don't shadow resources for applications using this library --> |
163 | 149 | <exclude>logback.xml</exclude> |
164 | 150 | </excludes> |
165 | 151 | </resource> |
166 | 152 | </resources> |
167 | 153 |
|
168 | 154 | <plugins> |
169 | 155 |
|
| 156 | + <plugin> |
| 157 | + <groupId>org.apache.maven.plugins</groupId> |
| 158 | + <artifactId>maven-compiler-plugin</artifactId> |
| 159 | + <version>3.13.0</version> |
| 160 | + <configuration> |
| 161 | + <release>25</release> |
| 162 | + </configuration> |
| 163 | + </plugin> |
| 164 | + |
170 | 165 | <plugin> |
171 | 166 | <groupId>org.apache.maven.plugins</groupId> |
172 | 167 | <artifactId>maven-assembly-plugin</artifactId> |
|
188 | 183 | </execution> |
189 | 184 | </executions> |
190 | 185 | </plugin> |
191 | | - <plugin> |
192 | | - <groupId>org.apache.maven.plugins</groupId> |
193 | | - <artifactId>maven-compiler-plugin</artifactId> |
194 | | - <version>3.11.0</version> |
195 | | - <configuration> |
196 | | - <source>11</source> |
197 | | - <target>11</target> |
198 | | - </configuration> |
199 | | - </plugin> |
200 | 186 |
|
201 | | - <plugin> |
202 | | - <groupId>com.coderplus.maven.plugins</groupId> |
203 | | - <artifactId>copy-rename-maven-plugin</artifactId> |
204 | | - <version>1.0.1</version> |
205 | | - <executions> |
206 | | - <execution> |
207 | | - <id>copy-and-rename-pom-file</id> |
208 | | - <phase>package</phase> |
209 | | - <goals> |
210 | | - <goal>copy</goal> |
211 | | - </goals> |
212 | | - <configuration> |
213 | | - <sourceFile>${project.basedir}/pom.xml</sourceFile> |
214 | | - <destinationFile>${project.build.directory}/${project.build.finalName}.pom</destinationFile> |
215 | | - </configuration> |
216 | | - </execution> |
217 | | - </executions> |
218 | | - </plugin> |
219 | | - |
220 | | - <!-- create a complete jar for testing in other environments --> |
221 | 187 | <plugin> |
222 | 188 | <groupId>org.apache.maven.plugins</groupId> |
223 | 189 | <artifactId>maven-jar-plugin</artifactId> |
| 190 | + <version>3.4.1</version> |
224 | 191 | <executions> |
225 | 192 | <execution> |
226 | 193 | <goals> |
|
229 | 196 | </execution> |
230 | 197 | </executions> |
231 | 198 | </plugin> |
232 | | - <plugin> |
233 | | - <groupId>org.apache.maven.plugins</groupId> |
234 | | - <artifactId>maven-assembly-plugin</artifactId> |
235 | | - <configuration> |
236 | | - <descriptors> |
237 | | - <descriptor>test-jar-with-dependencies.xml</descriptor> |
238 | | - </descriptors> |
239 | | - </configuration> |
240 | | - <executions> |
241 | | - <execution> |
242 | | - <!--Do not run the assembly plugin twice --> |
243 | | - <!--<phase>package</phase>--> |
244 | | - <goals> |
245 | | - <goal>single</goal> |
246 | | - </goals> |
247 | | - </execution> |
248 | | - </executions> |
249 | | - </plugin> |
250 | 199 |
|
251 | 200 | <plugin> |
252 | 201 | <groupId>org.codehaus.mojo</groupId> |
253 | 202 | <artifactId>build-helper-maven-plugin</artifactId> |
254 | 203 | <version>3.4.0</version> |
255 | 204 | <executions> |
256 | | - <!-- Add a new source directory to our build --> |
257 | 205 | <execution> |
258 | 206 | <id>add-integration-test-sources</id> |
259 | 207 | <phase>generate-test-sources</phase> |
260 | 208 | <goals> |
261 | 209 | <goal>add-test-source</goal> |
262 | 210 | </goals> |
263 | 211 | <configuration> |
264 | | - <!-- Configures the source directory of our integration tests --> |
265 | 212 | <sources> |
266 | 213 | <source>src/integration-test/java</source> |
267 | 214 | </sources> |
268 | 215 | </configuration> |
269 | 216 | </execution> |
270 | | - <!-- Add a new resource directory to our build --> |
271 | 217 | <execution> |
272 | 218 | <id>add-integration-test-resources</id> |
273 | 219 | <phase>generate-test-resources</phase> |
|
277 | 223 | <configuration> |
278 | 224 | <resources> |
279 | 225 | <resource> |
280 | | - <filtering>true</filtering> |
281 | 226 | <directory>src/integration-test/resources</directory> |
| 227 | + <filtering>true</filtering> |
282 | 228 | </resource> |
283 | 229 | </resources> |
284 | 230 | </configuration> |
285 | 231 | </execution> |
286 | | - |
287 | 232 | </executions> |
288 | 233 | </plugin> |
289 | 234 |
|
|
293 | 238 | <version>3.1.2</version> |
294 | 239 | <configuration> |
295 | 240 | <skipTests>${skip.unit.tests}</skipTests> |
296 | | - <!-- Excludes integration tests when unit tests are run --> |
297 | 241 | <excludes> |
298 | 242 | <exclude>**/IT*.java</exclude> |
299 | 243 | </excludes> |
|
306 | 250 | </environmentVariables> |
307 | 251 | </configuration> |
308 | 252 | </plugin> |
| 253 | + |
309 | 254 | <plugin> |
310 | 255 | <groupId>org.apache.maven.plugins</groupId> |
311 | 256 | <artifactId>maven-failsafe-plugin</artifactId> |
|
323 | 268 | </execution> |
324 | 269 | </executions> |
325 | 270 | </plugin> |
| 271 | + |
326 | 272 | <plugin> |
327 | 273 | <groupId>com.diffplug.spotless</groupId> |
328 | 274 | <artifactId>spotless-maven-plugin</artifactId> |
|
349 | 295 | </execution> |
350 | 296 | </executions> |
351 | 297 | </plugin> |
| 298 | + |
352 | 299 | </plugins> |
353 | 300 | </build> |
354 | 301 | </project> |
0 commit comments