|
36 | 36 | </scm> |
37 | 37 |
|
38 | 38 | <properties> |
39 | | - <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 39 | + <!-- Build settings --> |
| 40 | + <jacoco.skip>false</jacoco.skip> |
40 | 41 | <maven.compiler.release>11</maven.compiler.release> |
| 42 | + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 43 | + <test.jvm.args></test.jvm.args> |
| 44 | + <!-- Dependency versions --> |
| 45 | + <assertj-core.version>3.27.7</assertj-core.version> |
41 | 46 | <junit.version>5.10.1</junit.version> |
| 47 | + <!-- Plugin versions --> |
| 48 | + <jacoco-maven-plugin.version>0.8.12</jacoco-maven-plugin.version> |
| 49 | + <maven-compiler-plugin.version>3.15.0</maven-compiler-plugin.version> |
| 50 | + <maven-enforcer-plugin.version>3.6.3</maven-enforcer-plugin.version> |
| 51 | + <maven-jar-plugin.version>3.5.0</maven-jar-plugin.version> |
| 52 | + <maven-javadoc-plugin.version>3.12.0</maven-javadoc-plugin.version> |
| 53 | + <maven-source-plugin.version>3.4.0</maven-source-plugin.version> |
| 54 | + <maven-surefire-plugin.version>3.5.6</maven-surefire-plugin.version> |
| 55 | + <versions-maven-plugin.version>2.21.0</versions-maven-plugin.version> |
42 | 56 | </properties> |
43 | 57 |
|
44 | 58 | <dependencies> |
|
54 | 68 | <dependency> |
55 | 69 | <groupId>org.assertj</groupId> |
56 | 70 | <artifactId>assertj-core</artifactId> |
57 | | - <version>3.27.7</version> |
| 71 | + <version>${assertj-core.version}</version> |
58 | 72 | <scope>test</scope> |
59 | 73 | </dependency> |
60 | 74 | </dependencies> |
|
65 | 79 | <plugin> |
66 | 80 | <groupId>org.apache.maven.plugins</groupId> |
67 | 81 | <artifactId>maven-compiler-plugin</artifactId> |
68 | | - <version>3.15.0</version> |
| 82 | + <version>${maven-compiler-plugin.version}</version> |
69 | 83 | <configuration> |
70 | 84 | <release>${maven.compiler.release}</release> |
71 | 85 | </configuration> |
|
75 | 89 | <plugin> |
76 | 90 | <groupId>org.codehaus.mojo</groupId> |
77 | 91 | <artifactId>versions-maven-plugin</artifactId> |
78 | | - <version>2.21.0</version> |
| 92 | + <version>${versions-maven-plugin.version}</version> |
79 | 93 | <configuration> |
80 | 94 | <rulesUri>file://${project.basedir}/version-rules.xml</rulesUri> |
81 | 95 | </configuration> |
|
85 | 99 | <plugin> |
86 | 100 | <groupId>org.apache.maven.plugins</groupId> |
87 | 101 | <artifactId>maven-enforcer-plugin</artifactId> |
88 | | - <version>3.6.3</version> |
| 102 | + <version>${maven-enforcer-plugin.version}</version> |
89 | 103 | <executions> |
90 | 104 | <execution> |
91 | 105 | <id>enforce-plugin-versions</id> |
|
106 | 120 | </executions> |
107 | 121 | </plugin> |
108 | 122 |
|
| 123 | + <!-- JaCoCo code coverage --> |
| 124 | + <plugin> |
| 125 | + <groupId>org.jacoco</groupId> |
| 126 | + <artifactId>jacoco-maven-plugin</artifactId> |
| 127 | + <version>${jacoco-maven-plugin.version}</version> |
| 128 | + <executions> |
| 129 | + <execution> |
| 130 | + <id>prepare-agent</id> |
| 131 | + <goals> |
| 132 | + <goal>prepare-agent</goal> |
| 133 | + </goals> |
| 134 | + </execution> |
| 135 | + <execution> |
| 136 | + <id>report</id> |
| 137 | + <phase>verify</phase> |
| 138 | + <goals> |
| 139 | + <goal>report</goal> |
| 140 | + </goals> |
| 141 | + </execution> |
| 142 | + </executions> |
| 143 | + </plugin> |
| 144 | + |
109 | 145 | <!-- Surefire plugin for tests --> |
110 | 146 | <plugin> |
111 | 147 | <groupId>org.apache.maven.plugins</groupId> |
112 | 148 | <artifactId>maven-surefire-plugin</artifactId> |
113 | | - <version>3.5.6</version> |
| 149 | + <version>${maven-surefire-plugin.version}</version> |
| 150 | + <configuration> |
| 151 | + <argLine>${argLine} ${test.jvm.args}</argLine> |
| 152 | + </configuration> |
114 | 153 | </plugin> |
115 | 154 |
|
116 | 155 | <!-- JAR plugin --> |
117 | 156 | <plugin> |
118 | 157 | <groupId>org.apache.maven.plugins</groupId> |
119 | 158 | <artifactId>maven-jar-plugin</artifactId> |
120 | | - <version>3.5.0</version> |
| 159 | + <version>${maven-jar-plugin.version}</version> |
121 | 160 | </plugin> |
122 | 161 |
|
123 | 162 | <!-- Source plugin --> |
124 | 163 | <plugin> |
125 | 164 | <groupId>org.apache.maven.plugins</groupId> |
126 | 165 | <artifactId>maven-source-plugin</artifactId> |
127 | | - <version>3.4.0</version> |
| 166 | + <version>${maven-source-plugin.version}</version> |
128 | 167 | <executions> |
129 | 168 | <execution> |
130 | 169 | <id>attach-sources</id> |
|
139 | 178 | <plugin> |
140 | 179 | <groupId>org.apache.maven.plugins</groupId> |
141 | 180 | <artifactId>maven-javadoc-plugin</artifactId> |
142 | | - <version>3.12.0</version> |
| 181 | + <version>${maven-javadoc-plugin.version}</version> |
143 | 182 | <configuration> |
144 | 183 | <!-- Keep doclint strict on genuine problems (malformed HTML, broken |
145 | 184 | references, bad syntax) but do not require a comment on every trivial |
|
0 commit comments