|
35 | 35 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
36 | 36 | <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
37 | 37 |
|
| 38 | + <maven-compiler-plugin.version>3.10.1</maven-compiler-plugin.version> |
38 | 39 | <maven-surefire-plugin.version>2.22.2</maven-surefire-plugin.version>
|
| 40 | + <maven-source-plugin.version>3.2.1</maven-source-plugin.version> |
| 41 | + <maven-javadoc-plugin.version>3.3.2</maven-javadoc-plugin.version> |
| 42 | + <maven-gpg-plugin.version>3.0.1</maven-gpg-plugin.version> |
| 43 | + |
39 | 44 | <plugin.prettier.goal>write</plugin.prettier.goal>
|
40 | 45 |
|
41 | 46 | <license.dir>${basedir}</license.dir>
|
|
114 | 119 | </dependencies>
|
115 | 120 |
|
116 | 121 | <build>
|
| 122 | + <pluginManagement> |
| 123 | + <plugins> |
| 124 | + <!-- Source plugin --> |
| 125 | + <plugin> |
| 126 | + <groupId>org.apache.maven.plugins</groupId> |
| 127 | + <artifactId>maven-source-plugin</artifactId> |
| 128 | + <version>${maven-source-plugin.version}</version> |
| 129 | + <executions> |
| 130 | + <execution> |
| 131 | + <id>attach-sources</id> |
| 132 | + <goals> |
| 133 | + <goal>jar-no-fork</goal> |
| 134 | + </goals> |
| 135 | + </execution> |
| 136 | + </executions> |
| 137 | + </plugin> |
| 138 | + |
| 139 | + <!-- Javadoc plugin --> |
| 140 | + <plugin> |
| 141 | + <groupId>org.apache.maven.plugins</groupId> |
| 142 | + <artifactId>maven-javadoc-plugin</artifactId> |
| 143 | + <version>${maven-javadoc-plugin.version}</version> |
| 144 | + <executions> |
| 145 | + <execution> |
| 146 | + <id>attach-javadocs</id> |
| 147 | + <goals> |
| 148 | + <goal>jar</goal> |
| 149 | + </goals> |
| 150 | + </execution> |
| 151 | + </executions> |
| 152 | + </plugin> |
| 153 | + |
| 154 | + <!-- GPG plugin --> |
| 155 | + <plugin> |
| 156 | + <groupId>org.apache.maven.plugins</groupId> |
| 157 | + <artifactId>maven-gpg-plugin</artifactId> |
| 158 | + <version>${maven-gpg-plugin.version}</version> |
| 159 | + <executions> |
| 160 | + <execution> |
| 161 | + <id>sign-artifacts</id> |
| 162 | + <phase>verify</phase> |
| 163 | + <goals> |
| 164 | + <goal>sign</goal> |
| 165 | + </goals> |
| 166 | + <configuration> |
| 167 | + <!-- Prevent `gpg` from using pinentry programs --> |
| 168 | + <gpgArguments> |
| 169 | + <arg>--pinentry-mode</arg> |
| 170 | + <arg>loopback</arg> |
| 171 | + </gpgArguments> |
| 172 | + </configuration> |
| 173 | + </execution> |
| 174 | + </executions> |
| 175 | + </plugin> |
| 176 | + </plugins> |
| 177 | + </pluginManagement> |
117 | 178 | <plugins>
|
| 179 | + <plugin> |
| 180 | + <groupId>org.apache.maven.plugins</groupId> |
| 181 | + <artifactId>maven-compiler-plugin</artifactId> |
| 182 | + <version>${maven-compiler-plugin.version}</version> |
| 183 | + <configuration> |
| 184 | + <source>${maven.compiler.source}</source> |
| 185 | + <target>${maven.compiler.target}</target> |
| 186 | + </configuration> |
| 187 | + </plugin> |
118 | 188 | <plugin>
|
119 | 189 | <groupId>org.apache.maven.plugins</groupId>
|
120 | 190 | <artifactId>maven-surefire-plugin</artifactId>
|
|
181 | 251 | </execution>
|
182 | 252 | </executions>
|
183 | 253 | </plugin>
|
184 |
| - |
185 |
| - <!-- Nexus Staging Plugin --> |
186 |
| - <plugin> |
187 |
| - <groupId>org.sonatype.plugins</groupId> |
188 |
| - <artifactId>nexus-staging-maven-plugin</artifactId> |
189 |
| - <version>1.6.12</version> |
190 |
| - <extensions>true</extensions> |
191 |
| - <configuration> |
192 |
| - <serverId>ossrh</serverId> |
193 |
| - <nexusUrl>https://oss.sonatype.org/</nexusUrl> |
194 |
| - <autoReleaseAfterClose>true</autoReleaseAfterClose> |
195 |
| - </configuration> |
196 |
| - </plugin> |
197 |
| - <plugin> |
198 |
| - <groupId>org.apache.maven.plugins</groupId> |
199 |
| - <artifactId>maven-compiler-plugin</artifactId> |
200 |
| - <version>3.10.1</version> |
201 |
| - <configuration> |
202 |
| - <source>${maven.compiler.source}</source> |
203 |
| - <target>${maven.compiler.target}</target> |
204 |
| - </configuration> |
205 |
| - </plugin> |
206 | 254 | </plugins>
|
207 | 255 | </build>
|
208 | 256 |
|
|
299 | 347 | <url>https://oss.sonatype.org/content/repositories/snapshots</url>
|
300 | 348 | </snapshotRepository>
|
301 | 349 | </distributionManagement>
|
| 350 | + <build> |
| 351 | + <plugins> |
| 352 | + <plugin> |
| 353 | + <groupId>org.apache.maven.plugins</groupId> |
| 354 | + <artifactId>maven-source-plugin</artifactId> |
| 355 | + </plugin> |
| 356 | + |
| 357 | + <!-- Nexus Staging Plugin --> |
| 358 | + <plugin> |
| 359 | + <groupId>org.sonatype.plugins</groupId> |
| 360 | + <artifactId>nexus-staging-maven-plugin</artifactId> |
| 361 | + <version>1.6.12</version> |
| 362 | + <extensions>true</extensions> |
| 363 | + <configuration> |
| 364 | + <serverId>ossrh</serverId> |
| 365 | + <nexusUrl>https://oss.sonatype.org/</nexusUrl> |
| 366 | + <autoReleaseAfterClose>true</autoReleaseAfterClose> |
| 367 | + </configuration> |
| 368 | + </plugin> |
| 369 | + </plugins> |
| 370 | + </build> |
302 | 371 | </profile>
|
303 | 372 | <profile>
|
304 | 373 | <id>github</id>
|
|
309 | 378 | <url>https://maven.pkg.github.com/project-openubl/xbuilder</url>
|
310 | 379 | </repository>
|
311 | 380 | </distributionManagement>
|
312 |
| - </profile> |
313 |
| - <profile> |
314 |
| - <id>release</id> |
315 | 381 | <build>
|
316 | 382 | <plugins>
|
317 |
| - <!-- Source plugin --> |
318 | 383 | <plugin>
|
319 | 384 | <groupId>org.apache.maven.plugins</groupId>
|
320 | 385 | <artifactId>maven-source-plugin</artifactId>
|
321 |
| - <version>3.2.1</version> |
322 |
| - <executions> |
323 |
| - <execution> |
324 |
| - <id>attach-sources</id> |
325 |
| - <goals> |
326 |
| - <goal>jar-no-fork</goal> |
327 |
| - </goals> |
328 |
| - </execution> |
329 |
| - </executions> |
330 | 386 | </plugin>
|
331 |
| - |
332 |
| - <!-- Javadoc plugin --> |
| 387 | + </plugins> |
| 388 | + </build> |
| 389 | + </profile> |
| 390 | + <profile> |
| 391 | + <id>release</id> |
| 392 | + <build> |
| 393 | + <plugins> |
333 | 394 | <plugin>
|
334 | 395 | <groupId>org.apache.maven.plugins</groupId>
|
335 | 396 | <artifactId>maven-javadoc-plugin</artifactId>
|
336 |
| - <version>3.3.2</version> |
337 |
| - <executions> |
338 |
| - <execution> |
339 |
| - <id>attach-javadocs</id> |
340 |
| - <goals> |
341 |
| - <goal>jar</goal> |
342 |
| - </goals> |
343 |
| - </execution> |
344 |
| - </executions> |
345 | 397 | </plugin>
|
346 |
| - |
347 |
| - <!-- GPG plugin --> |
348 | 398 | <plugin>
|
349 | 399 | <groupId>org.apache.maven.plugins</groupId>
|
350 | 400 | <artifactId>maven-gpg-plugin</artifactId>
|
351 |
| - <version>3.0.1</version> |
352 |
| - <executions> |
353 |
| - <execution> |
354 |
| - <id>sign-artifacts</id> |
355 |
| - <phase>verify</phase> |
356 |
| - <goals> |
357 |
| - <goal>sign</goal> |
358 |
| - </goals> |
359 |
| - <configuration> |
360 |
| - <!-- Prevent `gpg` from using pinentry programs --> |
361 |
| - <gpgArguments> |
362 |
| - <arg>--pinentry-mode</arg> |
363 |
| - <arg>loopback</arg> |
364 |
| - </gpgArguments> |
365 |
| - </configuration> |
366 |
| - </execution> |
367 |
| - </executions> |
368 | 401 | </plugin>
|
369 | 402 | </plugins>
|
370 | 403 | </build>
|
|
0 commit comments