|
1 | | -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> |
| 1 | +<project xmlns="http://maven.apache.org/POM/4.0.0" |
| 2 | + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 3 | + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> |
2 | 4 |
|
3 | 5 | <modelVersion>4.0.0</modelVersion> |
4 | 6 | <groupId>com.github.crawler-commons</groupId> |
|
9 | 11 |
|
10 | 12 | <url>https://github.com/crawler-commons/url-frontier</url> |
11 | 13 |
|
12 | | - <description>API definition, resources and reference implementation of URL Frontiers</description> |
| 14 | + <description>API definition, resources and reference implementation of URL |
| 15 | + Frontiers</description> |
13 | 16 |
|
14 | 17 | <inceptionYear>2020</inceptionYear> |
15 | 18 |
|
|
23 | 26 | <scm> |
24 | 27 | <url>https://github.com/crawler-commons/url-frontier</url> |
25 | 28 | <connection>scm:git:git://github.com/crawler-commons/url-frontier.git</connection> |
26 | | - <developerConnection>scm:git:git@github.com:crawler-commons/url-frontier.git</developerConnection> |
| 29 | + <developerConnection> |
| 30 | + scm:git:git@github.com:crawler-commons/url-frontier.git</developerConnection> |
27 | 31 | <tag>HEAD</tag> |
28 | 32 | </scm> |
29 | 33 |
|
|
74 | 78 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
75 | 79 | <!-- needed to build within Docker --> |
76 | 80 | <skipFormatCode>false</skipFormatCode> |
| 81 | + <version.maven-enforcer-plugin>3.5.0</version.maven-enforcer-plugin> |
| 82 | + <minimalMavenBuildVersion>3.6.3</minimalMavenBuildVersion> |
| 83 | + <version.maven-compiler-plugin>3.13.0</version.maven-compiler-plugin> |
| 84 | + <git-code-format-maven-plugin.version>5.3</git-code-format-maven-plugin.version> |
| 85 | + <version.maven-gpg-plugin>3.2.6</version.maven-gpg-plugin> |
| 86 | + <version.maven-source-plugin>3.3.1</version.maven-source-plugin> |
| 87 | + <version.maven-jar-plugin>3.4.2</version.maven-jar-plugin> |
| 88 | + <version.maven-javadoc-plugin>3.10.0</version.maven-javadoc-plugin> |
| 89 | + <version.maven-release-plugin>3.1.1</version.maven-release-plugin> |
| 90 | + <version.maven-shade-plugin>3.6.0</version.maven-shade-plugin> |
| 91 | + <minimalJavaBuildVersion>11</minimalJavaBuildVersion> |
77 | 92 | </properties> |
78 | 93 |
|
79 | 94 | <build> |
|
82 | 97 | <plugin> |
83 | 98 | <groupId>org.apache.maven.plugins</groupId> |
84 | 99 | <artifactId>maven-compiler-plugin</artifactId> |
85 | | - <version>3.9.0</version> |
| 100 | + <version>${version.maven-compiler-plugin}</version> |
86 | 101 | <configuration> |
87 | 102 | <release>11</release> |
88 | 103 | </configuration> |
89 | 104 | </plugin> |
90 | 105 | <plugin> |
91 | 106 | <groupId>org.apache.maven.plugins</groupId> |
92 | 107 | <artifactId>maven-release-plugin</artifactId> |
93 | | - <version>3.0.0-M5</version> |
| 108 | + <version>${version.maven-release-plugin}</version> |
94 | 109 | <configuration> |
95 | 110 | <autoVersionSubmodules>true</autoVersionSubmodules> |
96 | 111 | <useReleaseProfile>false</useReleaseProfile> |
97 | 112 | <releaseProfiles>release</releaseProfiles> |
98 | 113 | <goals>deploy</goals> |
99 | 114 | </configuration> |
100 | 115 | </plugin> |
| 116 | + <plugin> |
| 117 | + <groupId>org.apache.maven.plugins</groupId> |
| 118 | + <artifactId>maven-enforcer-plugin</artifactId> |
| 119 | + <version>${version.maven-enforcer-plugin}</version> |
| 120 | + </plugin> |
| 121 | + <plugin> |
| 122 | + <groupId>org.apache.maven.plugins</groupId> |
| 123 | + <artifactId>maven-gpg-plugin</artifactId> |
| 124 | + <version>${version.maven-gpg-plugin}</version> |
| 125 | + <configuration> |
| 126 | + <gpgArguments> |
| 127 | + <arg>--digest-algo=SHA512</arg> |
| 128 | + </gpgArguments> |
| 129 | + </configuration> |
| 130 | + </plugin> |
| 131 | + <plugin> |
| 132 | + <groupId>org.apache.maven.plugins</groupId> |
| 133 | + <artifactId>maven-source-plugin</artifactId> |
| 134 | + <version>${version.maven-source-plugin}</version> |
| 135 | + </plugin> |
| 136 | + <plugin> |
| 137 | + <groupId>org.apache.maven.plugins</groupId> |
| 138 | + <artifactId>maven-jar-plugin</artifactId> |
| 139 | + <version>${version.maven-jar-plugin}</version> |
| 140 | + </plugin> |
| 141 | + <plugin> |
| 142 | + <groupId>org.apache.maven.plugins</groupId> |
| 143 | + <artifactId>maven-javadoc-plugin</artifactId> |
| 144 | + <version>${version.maven-javadoc-plugin}</version> |
| 145 | + </plugin> |
| 146 | + <plugin> |
| 147 | + <groupId>org.apache.maven.plugins</groupId> |
| 148 | + <artifactId>maven-shade-plugin</artifactId> |
| 149 | + <version>${version.maven-shade-plugin}</version> |
| 150 | + </plugin> |
101 | 151 | </plugins> |
102 | 152 | </pluginManagement> |
103 | 153 |
|
104 | 154 | <plugins> |
105 | 155 | <plugin> |
106 | 156 | <groupId>com.cosium.code</groupId> |
107 | 157 | <artifactId>git-code-format-maven-plugin</artifactId> |
108 | | - <version>3.3</version> |
| 158 | + <version>${git-code-format-maven-plugin.version}</version> |
109 | 159 | <executions> |
110 | 160 | <!-- On commit, format the modified java files --> |
111 | 161 | <execution> |
|
114 | 164 | <goal>install-hooks</goal> |
115 | 165 | </goals> |
116 | 166 | </execution> |
117 | | - <!-- On Maven verify phase, fail if any file (including unmodified) |
| 167 | + <!-- On Maven verify phase, fail if any file (including |
| 168 | + unmodified) |
118 | 169 | is badly formatted --> |
119 | 170 | <execution> |
120 | 171 | <id>validate-code-format</id> |
|
123 | 174 | </goals> |
124 | 175 | </execution> |
125 | 176 | </executions> |
| 177 | + <dependencies> |
| 178 | + <!-- Enable https://github.com/google/google-java-format --> |
| 179 | + <dependency> |
| 180 | + <groupId>com.cosium.code</groupId> |
| 181 | + <artifactId>google-java-format</artifactId> |
| 182 | + <version>${git-code-format-maven-plugin.version}</version> |
| 183 | + </dependency> |
| 184 | + </dependencies> |
126 | 185 | <configuration> |
127 | | - <skip>${skipFormatCode}</skip> |
128 | | - <googleJavaFormatOptions> |
129 | | - <aosp>true</aosp> |
130 | | - <fixImportsOnly>false</fixImportsOnly> |
131 | | - <skipSortingImports>false</skipSortingImports> |
132 | | - <skipRemovingUnusedImports>false</skipRemovingUnusedImports> |
133 | | - </googleJavaFormatOptions> |
| 186 | + <skip>${skip.format.code}</skip> |
| 187 | + <formatterOptions> |
| 188 | + <googleJavaFormat.aosp>true</googleJavaFormat.aosp> |
| 189 | + <googleJavaFormat.fixImportsOnly>false</googleJavaFormat.fixImportsOnly> |
| 190 | + <googleJavaFormat.skipSortingImports>false</googleJavaFormat.skipSortingImports> |
| 191 | + <googleJavaFormat.skipRemovingUnusedImports>false</googleJavaFormat.skipRemovingUnusedImports> |
| 192 | + </formatterOptions> |
134 | 193 | </configuration> |
135 | 194 | </plugin> |
136 | 195 | <plugin> |
137 | 196 | <groupId>org.apache.maven.plugins</groupId> |
138 | 197 | <artifactId>maven-enforcer-plugin</artifactId> |
139 | | - <version>3.0.0</version> |
140 | 198 | <executions> |
141 | 199 | <execution> |
142 | | - <id>enforce-maven</id> |
| 200 | + <id>enforce-maven-version</id> |
143 | 201 | <goals> |
144 | 202 | <goal>enforce</goal> |
145 | 203 | </goals> |
146 | 204 | <configuration> |
147 | 205 | <rules> |
148 | 206 | <requireMavenVersion> |
149 | | - <version>(3.2.5,)</version> |
| 207 | + <version>${minimalMavenBuildVersion}</version> |
150 | 208 | </requireMavenVersion> |
151 | 209 | </rules> |
152 | 210 | </configuration> |
153 | 211 | </execution> |
| 212 | + <execution> |
| 213 | + <id>enforce-java-version</id> |
| 214 | + <goals> |
| 215 | + <goal>enforce</goal> |
| 216 | + </goals> |
| 217 | + <configuration> |
| 218 | + <rules> |
| 219 | + <requireJavaVersion> |
| 220 | + <version>${minimalJavaBuildVersion}</version> |
| 221 | + </requireJavaVersion> |
| 222 | + </rules> |
| 223 | + </configuration> |
| 224 | + </execution> |
154 | 225 | </executions> |
155 | 226 | </plugin> |
156 | 227 | </plugins> |
|
164 | 235 | <plugin> |
165 | 236 | <groupId>org.apache.maven.plugins</groupId> |
166 | 237 | <artifactId>maven-gpg-plugin</artifactId> |
167 | | - <version>3.0.1</version> |
168 | 238 | <executions> |
169 | 239 | <execution> |
170 | 240 | <id>sign-artifacts</id> |
|
175 | 245 | </execution> |
176 | 246 | </executions> |
177 | 247 | </plugin> |
178 | | - <plugin> |
179 | | - <groupId>org.apache.maven.plugins</groupId> |
180 | | - <artifactId>maven-source-plugin</artifactId> |
181 | | - <version>3.2.1</version> |
182 | | - <executions> |
183 | | - <execution> |
184 | | - <id>attach-sources</id> |
185 | | - <goals> |
186 | | - <goal>jar-no-fork</goal> |
187 | | - </goals> |
188 | | - </execution> |
189 | | - </executions> |
190 | | - </plugin> |
191 | | - |
192 | | - <plugin> |
193 | | - <groupId>org.apache.maven.plugins</groupId> |
194 | | - <artifactId>maven-jar-plugin</artifactId> |
195 | | - <version>3.2.2</version> |
196 | | - <executions> |
197 | | - <execution> |
198 | | - <id>attach-test</id> |
199 | | - <goals> |
200 | | - <goal>test-jar</goal> |
201 | | - </goals> |
202 | | - </execution> |
203 | | - </executions> |
204 | | - </plugin> |
205 | | - |
206 | | - <plugin> |
207 | | - <groupId>org.apache.maven.plugins</groupId> |
208 | | - <artifactId>maven-javadoc-plugin</artifactId> |
209 | | - <version>3.3.1</version> |
210 | | - <executions> |
211 | | - <execution> |
212 | | - <id>attach-javadocs</id> |
213 | | - <goals> |
214 | | - <goal>jar</goal> |
215 | | - </goals> |
216 | | - </execution> |
217 | | - </executions> |
218 | | - </plugin> |
| 248 | + <plugin> |
| 249 | + <groupId>org.apache.maven.plugins</groupId> |
| 250 | + <artifactId>maven-source-plugin</artifactId> |
| 251 | + <executions> |
| 252 | + <execution> |
| 253 | + <id>attach-sources</id> |
| 254 | + <goals> |
| 255 | + <goal>jar-no-fork</goal> |
| 256 | + </goals> |
| 257 | + </execution> |
| 258 | + </executions> |
| 259 | + </plugin> |
| 260 | + |
| 261 | + <plugin> |
| 262 | + <groupId>org.apache.maven.plugins</groupId> |
| 263 | + <artifactId>maven-jar-plugin</artifactId> |
| 264 | + <executions> |
| 265 | + <execution> |
| 266 | + <id>attach-test</id> |
| 267 | + <goals> |
| 268 | + <goal>test-jar</goal> |
| 269 | + </goals> |
| 270 | + </execution> |
| 271 | + </executions> |
| 272 | + </plugin> |
| 273 | + |
| 274 | + <plugin> |
| 275 | + <groupId>org.apache.maven.plugins</groupId> |
| 276 | + <artifactId>maven-javadoc-plugin</artifactId> |
| 277 | + <executions> |
| 278 | + <execution> |
| 279 | + <id>attach-javadocs</id> |
| 280 | + <goals> |
| 281 | + <goal>jar</goal> |
| 282 | + </goals> |
| 283 | + </execution> |
| 284 | + </executions> |
| 285 | + </plugin> |
219 | 286 | </plugins> |
220 | 287 | </build> |
221 | 288 | </profile> |
|
0 commit comments