|
203 | 203 | <url>https://github.com/clojure/clojurescript</url> |
204 | 204 | </scm> |
205 | 205 |
|
206 | | - <!-- |
207 | | - <parent> |
208 | | - <groupId>org.clojure</groupId> |
209 | | - <artifactId>pom.contrib</artifactId> |
210 | | - <version>0.1.2</version> |
211 | | - </parent> |
212 | | - --> |
213 | | - |
214 | | - <parent> |
215 | | - <groupId>org.sonatype.oss</groupId> |
216 | | - <artifactId>oss-parent</artifactId> |
217 | | - <version>7</version> |
218 | | - </parent> |
219 | | - |
220 | 206 | <properties> |
221 | 207 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
222 | 208 | <clojure.source.dir>src/main/clojure</clojure.source.dir> |
|
226 | 212 | <directlinking>true</directlinking> |
227 | 213 | </properties> |
228 | 214 |
|
| 215 | + <distributionManagement> |
| 216 | + <repository> |
| 217 | + <id>central</id> |
| 218 | + <url>https://central.sonatype.com</url> |
| 219 | + </repository> |
| 220 | + <snapshotRepository> |
| 221 | + <id>central-snapshot</id> |
| 222 | + <url>https://central.sonatype.com/repository/maven-snapshots/</url> |
| 223 | + </snapshotRepository> |
| 224 | + </distributionManagement> |
| 225 | + |
229 | 226 | <build> |
230 | 227 | <plugins> |
| 228 | + <plugin> |
| 229 | + <groupId>org.apache.maven.plugins</groupId> |
| 230 | + <artifactId>maven-source-plugin</artifactId> |
| 231 | + <version>3.3.1</version> |
| 232 | + <executions> |
| 233 | + <execution> |
| 234 | + <id>attach-sources</id> |
| 235 | + <phase>package</phase> |
| 236 | + <goals> |
| 237 | + <goal>jar</goal> |
| 238 | + </goals> |
| 239 | + </execution> |
| 240 | + </executions> |
| 241 | + </plugin> |
| 242 | + |
231 | 243 | <plugin> |
232 | 244 | <!-- Add Clojure sources to the project's source directories --> |
233 | 245 | <groupId>org.codehaus.mojo</groupId> |
234 | 246 | <artifactId>build-helper-maven-plugin</artifactId> |
235 | | - <version>1.5</version> |
| 247 | + <version>3.0.0</version> |
236 | 248 | <executions> |
237 | 249 | <execution> |
238 | 250 | <id>add-clojure-source-dirs</id> |
|
286 | 298 | </plugin> |
287 | 299 | <plugin> |
288 | 300 | <artifactId>maven-jar-plugin</artifactId> |
289 | | - <version>2.4</version> |
| 301 | + <version>3.4.2</version> |
290 | 302 | <configuration> |
291 | 303 | <archive> |
292 | 304 | <manifest> |
|
314 | 326 | </includes> |
315 | 327 | </configuration> |
316 | 328 | </execution> |
| 329 | + <execution> |
| 330 | + <id>javadoc-jar</id> |
| 331 | + <phase>package</phase> |
| 332 | + <goals> |
| 333 | + <goal>jar</goal> |
| 334 | + </goals> |
| 335 | + <configuration> |
| 336 | + <excludes> |
| 337 | + <exclude>**</exclude> |
| 338 | + </excludes> |
| 339 | + <classifier>javadoc</classifier> |
| 340 | + </configuration> |
| 341 | + </execution> |
317 | 342 | </executions> |
318 | 343 | </plugin> |
319 | 344 | <plugin> |
320 | 345 | <artifactId>maven-assembly-plugin</artifactId> |
321 | | - <version>2.4</version> |
| 346 | + <version>3.7.1</version> |
322 | 347 | <executions> |
323 | 348 | <execution> |
324 | 349 | <id>aot-jar</id> |
|
352 | 377 | <artifactId>maven-gpg-plugin</artifactId> |
353 | 378 | <version>3.1.0</version> |
354 | 379 | <configuration> |
355 | | - <gpgArguments> |
356 | | - <arg>--pinentry-mode</arg> |
357 | | - <arg>loopback</arg> |
358 | | - </gpgArguments> |
| 380 | + <gpgArguments> |
| 381 | + <arg>--pinentry-mode</arg> |
| 382 | + <arg>loopback</arg> |
| 383 | + </gpgArguments> |
359 | 384 | </configuration> |
360 | 385 | </plugin> |
361 | 386 | <plugin> |
362 | 387 | <groupId>org.apache.maven.plugins</groupId> |
363 | 388 | <artifactId>maven-compiler-plugin</artifactId> |
364 | | - <version>3.1</version> |
| 389 | + <version>3.8.1</version> |
365 | 390 | <configuration> |
366 | 391 | <source>21</source> |
367 | 392 | <target>21</target> |
368 | 393 | </configuration> |
369 | 394 | </plugin> |
| 395 | + |
| 396 | + <plugin> |
| 397 | + <!-- do not push pre-deployment SCM changes to upstream repo |
| 398 | + with maven release plugin; if the release/deploy fails, |
| 399 | + we're stuck with manually fixing up version numbers, git |
| 400 | + history, etc --> |
| 401 | + <groupId>org.apache.maven.plugins</groupId> |
| 402 | + <artifactId>maven-release-plugin</artifactId> |
| 403 | + <version>2.5.3</version> |
| 404 | + <configuration> |
| 405 | + </configuration> |
| 406 | + </plugin> |
| 407 | + |
| 408 | + <!-- deploy artifacts to sonatype --> |
| 409 | + <plugin> |
| 410 | + <groupId>org.sonatype.central</groupId> |
| 411 | + <artifactId>central-publishing-maven-plugin</artifactId> |
| 412 | + <version>0.7.0</version> |
| 413 | + <extensions>true</extensions> |
| 414 | + <configuration> |
| 415 | + <publishingServerId>central</publishingServerId> |
| 416 | + <autoPublish>true</autoPublish> |
| 417 | + </configuration> |
| 418 | + </plugin> |
| 419 | + |
370 | 420 | </plugins> |
371 | 421 | </build> |
372 | 422 |
|
373 | 423 | <profiles> |
374 | 424 | <profile> |
375 | | - <id>sonatype-oss-release</id> |
376 | | - <!-- This profile is enabled automatically by the Sonatype |
377 | | - oss-parent POM when invoking the Maven Release Plugin --> |
378 | | - <build> |
379 | | - <plugins> |
380 | | - <plugin> |
381 | | - <groupId>org.apache.maven.plugins</groupId> |
382 | | - <artifactId>maven-deploy-plugin</artifactId> |
383 | | - <version>2.7</version> |
384 | | - <configuration> |
385 | | - <skip>true</skip> |
386 | | - </configuration> |
387 | | - </plugin> |
388 | | - <plugin> |
389 | | - <groupId>org.sonatype.plugins</groupId> |
390 | | - <artifactId>nexus-staging-maven-plugin</artifactId> |
391 | | - <version>1.7.0</version> |
392 | | - <executions> |
393 | | - <execution> |
394 | | - <id>default-deploy</id> |
395 | | - <phase>deploy</phase> |
396 | | - <!-- By default, this is the phase deploy goal will bind to --> |
397 | | - <goals> |
398 | | - <goal>deploy</goal> |
399 | | - </goals> |
400 | | - </execution> |
401 | | - </executions> |
402 | | - <configuration> |
403 | | - <!-- The Base URL of Nexus instance where we want to stage --> |
404 | | - <nexusUrl>https://oss.sonatype.org/</nexusUrl> |
405 | | - <!-- The server "id" element from settings to use authentication from --> |
406 | | - <serverId>sonatype-nexus-staging</serverId> |
407 | | - </configuration> |
408 | | - </plugin> |
409 | | - </plugins> |
410 | | - </build> |
| 425 | + <id>sign</id> |
| 426 | + <build> |
| 427 | + <plugins> |
| 428 | + <!-- sign artifacts for deployment --> |
| 429 | + <plugin> |
| 430 | + <groupId>org.apache.maven.plugins</groupId> |
| 431 | + <artifactId>maven-gpg-plugin</artifactId> |
| 432 | + <version>1.5</version> |
| 433 | + <executions> |
| 434 | + <execution> |
| 435 | + <id>sign-artifacts</id> |
| 436 | + <phase>verify</phase> |
| 437 | + <goals> |
| 438 | + <goal>sign</goal> |
| 439 | + </goals> |
| 440 | + </execution> |
| 441 | + </executions> |
| 442 | + </plugin> |
| 443 | + </plugins> |
| 444 | + </build> |
411 | 445 | </profile> |
412 | 446 | </profiles> |
413 | 447 | </project> |
0 commit comments