|
30 | 30 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
31 | 31 | <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
32 | 32 |
|
33 |
| - <embedded-postgres-binaries.version>14.10.1</embedded-postgres-binaries.version> |
| 33 | + <embedded-postgres-binaries.version>14.12.0</embedded-postgres-binaries.version> |
| 34 | + <commons-codec.version>1.17.1</commons-codec.version> |
| 35 | + <commons-compress.version>1.26.2</commons-compress.version> |
| 36 | + <commons-io.version>2.16.1</commons-io.version> |
| 37 | + <commons-lang3.version>3.15.0</commons-lang3.version> |
| 38 | + <flyway.version>9.22.3</flyway.version> |
| 39 | + <junit5.version>5.10.3</junit5.version> |
| 40 | + <junit4.version>4.13.2</junit4.version> |
| 41 | + <liquibase.version>4.29.1</liquibase.version> |
| 42 | + <mockito.version>4.11.0</mockito.version> |
| 43 | + <pmd.version>7.4.0</pmd.version> |
| 44 | + <postgresql.version>42.7.3</postgresql.version> |
| 45 | + <slf4j.version>1.7.36</slf4j.version> |
| 46 | + <xz.version>1.10</xz.version> |
| 47 | + <maven-enforcer-plugin.version>3.5.0</maven-enforcer-plugin.version> |
| 48 | + <maven-gpg-plugin.version>1.6</maven-gpg-plugin.version> |
| 49 | + <maven-javadoc-plugin.version>3.8.0</maven-javadoc-plugin.version> |
| 50 | + <maven-pmd-plugin.version>3.24.0</maven-pmd-plugin.version> |
| 51 | + <maven-release-plugin.version>3.1.1</maven-release-plugin.version> |
| 52 | + <maven-source-plugin.version>3.3.1</maven-source-plugin.version> |
| 53 | + <maven-surefire-plugin.version>3.3.1</maven-surefire-plugin.version> |
34 | 54 | </properties>
|
35 | 55 |
|
36 | 56 | <url>https://github.com/zonkyio/embedded-postgres</url>
|
|
71 | 91 | </snapshotRepository>
|
72 | 92 | </distributionManagement>
|
73 | 93 |
|
| 94 | + <dependencyManagement> |
| 95 | + <dependencies> |
| 96 | + <dependency> |
| 97 | + <groupId>commons-io</groupId> |
| 98 | + <artifactId>commons-io</artifactId> |
| 99 | + <version>${commons-io.version}</version> |
| 100 | + </dependency> |
| 101 | + <dependency> |
| 102 | + <groupId>org.apache.commons</groupId> |
| 103 | + <artifactId>commons-lang3</artifactId> |
| 104 | + <version>${commons-lang3.version}</version> |
| 105 | + </dependency> |
| 106 | + <dependency> |
| 107 | + <groupId>org.apache.commons</groupId> |
| 108 | + <artifactId>commons-compress</artifactId> |
| 109 | + <version>${commons-compress.version}</version> |
| 110 | + </dependency> |
| 111 | + <dependency> |
| 112 | + <groupId>commons-codec</groupId> |
| 113 | + <artifactId>commons-codec</artifactId> |
| 114 | + <version>${commons-codec.version}</version> |
| 115 | + </dependency> |
| 116 | + <dependency> |
| 117 | + <groupId>org.junit</groupId> |
| 118 | + <artifactId>junit-bom</artifactId> |
| 119 | + <version>${junit5.version}</version> |
| 120 | + <type>pom</type> |
| 121 | + <scope>import</scope> |
| 122 | + </dependency> |
| 123 | + </dependencies> |
| 124 | + </dependencyManagement> |
74 | 125 | <dependencies>
|
75 | 126 | <dependency>
|
76 | 127 | <groupId>io.zonky.test.postgres</groupId>
|
|
100 | 151 | <dependency>
|
101 | 152 | <groupId>org.slf4j</groupId>
|
102 | 153 | <artifactId>slf4j-api</artifactId>
|
103 |
| - <version>1.7.36</version> |
| 154 | + <version>${slf4j.version}</version> |
104 | 155 | </dependency>
|
105 | 156 | <dependency>
|
106 | 157 | <groupId>org.apache.commons</groupId>
|
107 | 158 | <artifactId>commons-lang3</artifactId>
|
108 |
| - <version>3.12.0</version> |
109 | 159 | </dependency>
|
110 | 160 | <dependency>
|
111 | 161 | <groupId>org.apache.commons</groupId>
|
112 | 162 | <artifactId>commons-compress</artifactId>
|
113 |
| - <version>1.26.0</version> |
114 | 163 | </dependency>
|
115 | 164 | <dependency>
|
116 | 165 | <groupId>org.tukaani</groupId>
|
117 | 166 | <artifactId>xz</artifactId>
|
118 |
| - <version>1.9</version> |
| 167 | + <version>${xz.version}</version> |
119 | 168 | </dependency>
|
120 | 169 | <dependency>
|
121 | 170 | <groupId>commons-io</groupId>
|
122 | 171 | <artifactId>commons-io</artifactId>
|
123 |
| - <version>2.11.0</version> |
124 | 172 | </dependency>
|
125 | 173 | <dependency>
|
126 | 174 | <groupId>commons-codec</groupId>
|
127 | 175 | <artifactId>commons-codec</artifactId>
|
128 |
| - <version>1.15</version> |
129 | 176 | </dependency>
|
130 | 177 | <dependency>
|
131 | 178 | <groupId>org.flywaydb</groupId>
|
132 | 179 | <artifactId>flyway-core</artifactId>
|
133 |
| - <version>7.15.0</version> |
| 180 | + <version>${flyway.version}</version> |
134 | 181 | <optional>true</optional>
|
135 | 182 | </dependency>
|
136 | 183 | <dependency>
|
137 | 184 | <groupId>org.liquibase</groupId>
|
138 | 185 | <artifactId>liquibase-core</artifactId>
|
139 |
| - <version>4.10.0</version> |
| 186 | + <version>${liquibase.version}</version> |
140 | 187 | <optional>true</optional>
|
141 | 188 | </dependency>
|
142 | 189 | <dependency>
|
143 | 190 | <groupId>org.postgresql</groupId>
|
144 | 191 | <artifactId>postgresql</artifactId>
|
145 |
| - <version>42.7.3</version> |
| 192 | + <version>${postgresql.version}</version> |
146 | 193 | </dependency>
|
147 | 194 | <dependency>
|
148 | 195 | <groupId>junit</groupId>
|
149 | 196 | <artifactId>junit</artifactId>
|
150 |
| - <version>4.13.2</version> |
| 197 | + <version>${junit4.version}</version> |
151 | 198 | <scope>provided</scope>
|
152 | 199 | <optional>true</optional>
|
153 | 200 | </dependency>
|
154 | 201 | <dependency>
|
155 | 202 | <groupId>org.junit.jupiter</groupId>
|
156 | 203 | <artifactId>junit-jupiter-api</artifactId>
|
157 |
| - <version>5.8.2</version> |
158 | 204 | <scope>provided</scope>
|
159 | 205 | <optional>true</optional>
|
160 | 206 | </dependency>
|
161 | 207 | <dependency>
|
162 | 208 | <groupId>org.junit.vintage</groupId>
|
163 | 209 | <artifactId>junit-vintage-engine</artifactId>
|
164 |
| - <version>5.8.2</version> |
165 | 210 | <scope>test</scope>
|
166 | 211 | </dependency>
|
167 | 212 | <dependency>
|
168 | 213 | <groupId>org.junit.jupiter</groupId>
|
169 | 214 | <artifactId>junit-jupiter-engine</artifactId>
|
170 |
| - <version>5.8.2</version> |
171 | 215 | <scope>test</scope>
|
172 | 216 | </dependency>
|
173 | 217 |
|
174 | 218 | <dependency>
|
175 | 219 | <groupId>org.slf4j</groupId>
|
176 | 220 | <artifactId>slf4j-simple</artifactId>
|
177 |
| - <version>1.7.36</version> |
| 221 | + <version>${slf4j.version}</version> |
178 | 222 | <scope>test</scope>
|
179 | 223 | </dependency>
|
180 | 224 | <dependency>
|
181 | 225 | <groupId>org.mockito</groupId>
|
182 | 226 | <artifactId>mockito-core</artifactId>
|
183 |
| - <version>3.12.4</version> |
| 227 | + <version>${mockito.version}</version><!-- last Java 8 version --> |
184 | 228 | <scope>test</scope>
|
185 | 229 | </dependency>
|
186 | 230 | </dependencies>
|
187 | 231 |
|
188 | 232 | <build>
|
189 | 233 | <plugins>
|
| 234 | + <plugin> |
| 235 | + <groupId>org.apache.maven.plugins</groupId> |
| 236 | + <artifactId>maven-enforcer-plugin</artifactId> |
| 237 | + <version>${maven-enforcer-plugin.version}</version> |
| 238 | + <executions> |
| 239 | + <execution> |
| 240 | + <id>enforce-versions</id> |
| 241 | + <phase>validate</phase> |
| 242 | + <goals> |
| 243 | + <goal>enforce</goal> |
| 244 | + </goals> |
| 245 | + <configuration> |
| 246 | + <rules> |
| 247 | + <dependencyConvergence/> |
| 248 | + </rules> |
| 249 | + </configuration> |
| 250 | + </execution> |
| 251 | + </executions> |
| 252 | + </plugin> |
190 | 253 | <plugin>
|
191 | 254 | <artifactId>maven-surefire-plugin</artifactId>
|
192 |
| - <version>2.22.2</version> |
| 255 | + <version>${maven-surefire-plugin.version}</version> |
| 256 | + <configuration> |
| 257 | + <environmentVariables> |
| 258 | + <LC_ALL>${env.LC_ALL}</LC_ALL><!-- needed by initdb --> |
| 259 | + </environmentVariables> |
| 260 | + </configuration> |
193 | 261 | </plugin>
|
194 | 262 | <plugin>
|
195 | 263 | <artifactId>maven-pmd-plugin</artifactId>
|
196 |
| - <version>3.13.0</version> |
| 264 | + <version>${maven-pmd-plugin.version}</version> |
197 | 265 | <executions>
|
198 | 266 | <execution>
|
199 | 267 | <phase>verify</phase>
|
|
206 | 274 | <dependency>
|
207 | 275 | <groupId>net.sourceforge.pmd</groupId>
|
208 | 276 | <artifactId>pmd-core</artifactId>
|
209 |
| - <version>6.55.0</version> |
| 277 | + <version>${pmd.version}</version> |
210 | 278 | <scope>compile</scope>
|
211 | 279 | </dependency>
|
212 | 280 | <dependency>
|
213 | 281 | <groupId>net.sourceforge.pmd</groupId>
|
214 | 282 | <artifactId>pmd-java</artifactId>
|
215 |
| - <version>6.55.0</version> |
| 283 | + <version>${pmd.version}</version> |
216 | 284 | <scope>compile</scope>
|
217 | 285 | </dependency>
|
218 | 286 | </dependencies>
|
219 | 287 | <configuration>
|
220 | 288 | <skip>false</skip>
|
221 | 289 | <failOnViolation>true</failOnViolation>
|
222 | 290 | <targetJdk>1.8</targetJdk>
|
223 |
| - <sourceEncoding>UTF-8</sourceEncoding> |
| 291 | + <inputEncoding>UTF-8</inputEncoding> |
224 | 292 | <minimumTokens>100</minimumTokens>
|
225 | 293 | <failurePriority>4</failurePriority>
|
226 | 294 | </configuration>
|
227 | 295 | </plugin>
|
228 | 296 | <plugin>
|
229 | 297 | <groupId>org.apache.maven.plugins</groupId>
|
230 | 298 | <artifactId>maven-source-plugin</artifactId>
|
231 |
| - <version>3.2.1</version> |
| 299 | + <version>${maven-source-plugin.version}</version> |
232 | 300 | <executions>
|
233 | 301 | <execution>
|
234 | 302 | <id>attach-sources</id>
|
|
241 | 309 | <plugin>
|
242 | 310 | <groupId>org.apache.maven.plugins</groupId>
|
243 | 311 | <artifactId>maven-javadoc-plugin</artifactId>
|
244 |
| - <version>3.2.0</version> |
| 312 | + <version>${maven-javadoc-plugin.version}</version> |
245 | 313 | <executions>
|
246 | 314 | <execution>
|
247 | 315 | <id>attach-javadocs</id>
|
|
257 | 325 | <plugin>
|
258 | 326 | <groupId>org.apache.maven.plugins</groupId>
|
259 | 327 | <artifactId>maven-release-plugin</artifactId>
|
260 |
| - <version>2.5.3</version> |
| 328 | + <version>${maven-release-plugin.version}</version> |
261 | 329 | <configuration>
|
262 | 330 | <useReleaseProfile>false</useReleaseProfile>
|
263 | 331 | <releaseProfiles>release</releaseProfiles>
|
|
268 | 336 | </build>
|
269 | 337 |
|
270 | 338 | <profiles>
|
| 339 | + <!-- prevent "initdb: error: invalid locale settings; check LANG and LC_* environment variables" --> |
| 340 | + <profile> |
| 341 | + <id>default-lc-all</id> |
| 342 | + <activation> |
| 343 | + <property> |
| 344 | + <name>!env.LC_ALL</name><!-- if LC_ALL is missing --> |
| 345 | + </property> |
| 346 | + <os> |
| 347 | + <family>Unix</family> |
| 348 | + </os> |
| 349 | + </activation> |
| 350 | + <properties> |
| 351 | + <env.LC_ALL>en_US.UTF-8</env.LC_ALL><!-- set default --> |
| 352 | + </properties> |
| 353 | + </profile> |
271 | 354 | <profile>
|
272 | 355 | <id>release</id>
|
273 | 356 | <build>
|
274 | 357 | <plugins>
|
275 | 358 | <plugin>
|
276 | 359 | <groupId>org.apache.maven.plugins</groupId>
|
277 | 360 | <artifactId>maven-gpg-plugin</artifactId>
|
278 |
| - <version>1.6</version> |
| 361 | + <version>${maven-gpg-plugin.version}</version> |
279 | 362 | <executions>
|
280 | 363 | <execution>
|
281 | 364 | <id>sign-artifacts</id>
|
|
0 commit comments