|
12 | 12 | <description>Fetches test dependencies only.</description>
|
13 | 13 | <url>https://www.rabbitmq.com</url>
|
14 | 14 |
|
| 15 | + <properties> |
| 16 | + <paho.v5.version>[1.2.5,)</paho.v5.version> |
| 17 | + <paho.v3.version>[1.2.5,)</paho.v3.version> |
| 18 | + <amqp-client.version>5.18.0</amqp-client.version> |
| 19 | + <junit.version>5.9.3</junit.version> |
| 20 | + <assertj.version>3.24.2</assertj.version> |
| 21 | + <maven-surefire-plugin.version>3.1.2</maven-surefire-plugin.version> |
| 22 | + <groovy-maven-plugin.version>2.1.1</groovy-maven-plugin.version> |
| 23 | + <groovy.version>2.4.21</groovy.version> |
| 24 | + <maven-compiler-plugin.version>3.11.0</maven-compiler-plugin.version> |
| 25 | + <spotless.version>2.37.0</spotless.version> |
| 26 | + <google-java-format.version>1.17.0</google-java-format.version> |
| 27 | + <test-keystore.ca>${project.build.directory}/ca.keystore</test-keystore.ca> |
| 28 | + <test-keystore.password>bunnychow</test-keystore.password> |
| 29 | + <groovy-scripts.dir>${basedir}/src/test/scripts</groovy-scripts.dir> |
| 30 | + </properties> |
| 31 | + |
15 | 32 | <dependencies>
|
16 | 33 | <dependency>
|
17 | 34 | <groupId>org.eclipse.paho</groupId>
|
18 | 35 | <artifactId>org.eclipse.paho.mqttv5.client</artifactId>
|
19 |
| - <version>1.2.5</version> |
| 36 | + <version>${paho.v5.version}</version> |
20 | 37 | <scope>test</scope>
|
21 | 38 | </dependency>
|
22 | 39 | <dependency>
|
23 | 40 | <groupId>org.eclipse.paho</groupId>
|
24 | 41 | <artifactId>org.eclipse.paho.client.mqttv3</artifactId>
|
25 |
| - <version>[1.2.1,)</version> |
| 42 | + <version>${paho.v3.version}</version> |
26 | 43 | <scope>test</scope>
|
27 | 44 | </dependency>
|
28 | 45 | <dependency>
|
29 | 46 | <groupId>com.rabbitmq</groupId>
|
30 | 47 | <artifactId>amqp-client</artifactId>
|
31 |
| - <version>5.16.0</version> |
| 48 | + <version>${amqp-client.version}</version> |
32 | 49 | <scope>test</scope>
|
33 | 50 | </dependency>
|
34 | 51 | <dependency>
|
35 | 52 | <groupId>org.junit.jupiter</groupId>
|
36 | 53 | <artifactId>junit-jupiter</artifactId>
|
37 |
| - <version>5.9.2</version> |
| 54 | + <version>${junit.version}</version> |
| 55 | + <scope>test</scope> |
| 56 | + </dependency> |
| 57 | + <dependency> |
| 58 | + <groupId>org.assertj</groupId> |
| 59 | + <artifactId>assertj-core</artifactId> |
| 60 | + <version>${assertj.version}</version> |
38 | 61 | <scope>test</scope>
|
39 | 62 | </dependency>
|
40 |
| - </dependencies> |
41 | 63 |
|
42 |
| - <properties> |
43 |
| - <test-keystore.ca>${project.build.directory}/ca.keystore</test-keystore.ca> |
44 |
| - <test-keystore.password>bunnychow</test-keystore.password> |
45 |
| - <groovy-scripts.dir>${basedir}/src/test/scripts</groovy-scripts.dir> |
46 |
| - </properties> |
| 64 | + </dependencies> |
47 | 65 |
|
48 | 66 | <build>
|
49 | 67 | <plugins>
|
50 | 68 | <plugin>
|
51 | 69 | <groupId>org.apache.maven.plugins</groupId>
|
52 | 70 | <artifactId>maven-surefire-plugin</artifactId>
|
53 |
| - <version>2.22.2</version> |
| 71 | + <version>${maven-surefire-plugin.version}</version> |
54 | 72 | <configuration>
|
55 | 73 | <environmentVariables>
|
56 | 74 | <DEPS_DIR>${deps.dir}</DEPS_DIR>
|
|
79 | 97 | <plugin>
|
80 | 98 | <groupId>org.codehaus.gmaven</groupId>
|
81 | 99 | <artifactId>groovy-maven-plugin</artifactId>
|
82 |
| - <version>2.1.1</version> |
| 100 | + <version>${groovy-maven-plugin.version}</version> |
83 | 101 | <dependencies>
|
84 | 102 | <dependency>
|
85 | 103 | <groupId>org.codehaus.groovy</groupId>
|
86 | 104 | <artifactId>groovy-all</artifactId>
|
87 |
| - <version>2.4.17</version> |
| 105 | + <version>${groovy.version}</version> |
88 | 106 | </dependency>
|
89 | 107 | </dependencies>
|
90 | 108 | <executions>
|
|
127 | 145 |
|
128 | 146 | <plugin>
|
129 | 147 | <artifactId>maven-compiler-plugin</artifactId>
|
130 |
| - <version>3.8.1</version> |
| 148 | + <version>${maven-compiler-plugin.version}</version> |
131 | 149 | <configuration>
|
132 | 150 | <source>1.8</source>
|
133 | 151 | <target>1.8</target>
|
|
138 | 156 | </configuration>
|
139 | 157 | </plugin>
|
140 | 158 |
|
| 159 | + <plugin> |
| 160 | + <groupId>com.diffplug.spotless</groupId> |
| 161 | + <artifactId>spotless-maven-plugin</artifactId> |
| 162 | + <version>${spotless.version}</version> |
| 163 | + <configuration> |
| 164 | + <java> |
| 165 | + <googleJavaFormat> |
| 166 | + <version>${google-java-format.version}</version> |
| 167 | + <style>GOOGLE</style> |
| 168 | + </googleJavaFormat> |
| 169 | + </java> |
| 170 | + <!-- <ratchetFrom>origin/main</ratchetFrom>--> |
| 171 | + <licenseHeader> <!-- specify either content or file, but not both --> |
| 172 | + <content>// This Source Code Form is subject to the terms of the Mozilla Public |
| 173 | + // License, v. 2.0. If a copy of the MPL was not distributed with this |
| 174 | + // file, You can obtain one at https://mozilla.org/MPL/2.0/. |
| 175 | + // |
| 176 | + // Copyright (c) 2007-2023 VMware, Inc. or its affiliates. All rights reserved. |
| 177 | + // |
| 178 | + </content> |
| 179 | + </licenseHeader> |
| 180 | + </configuration> |
| 181 | + </plugin> |
| 182 | + |
141 | 183 | </plugins>
|
142 | 184 | </build>
|
143 | 185 | </project>
|
0 commit comments