|
287 | 287 | <!-- This is the parent, so only define pluginManagement, not plugins. -->
|
288 | 288 | <pluginManagement>
|
289 | 289 | <plugins>
|
290 |
| - <plugin> |
291 |
| - <groupId>org.sonatype.plugins</groupId> |
292 |
| - <artifactId>nexus-staging-maven-plugin</artifactId> |
293 |
| - <version>1.7.0</version> |
294 |
| - <extensions>true</extensions> |
295 |
| - <configuration> |
296 |
| - <serverId>ossrh</serverId> |
297 |
| - <nexusUrl>https://google.oss.sonatype.org/</nexusUrl> |
298 |
| - <autoReleaseAfterClose>${deploy.autorelease}</autoReleaseAfterClose> |
299 |
| - </configuration> |
300 |
| - </plugin> |
301 | 290 | <plugin>
|
302 | 291 | <artifactId>maven-assembly-plugin</artifactId>
|
303 | 292 | <version>3.7.1</version>
|
|
516 | 505 | </plugins>
|
517 | 506 | </configuration>
|
518 | 507 | </plugin>
|
519 |
| - <plugin> |
520 |
| - <groupId>org.codehaus.mojo</groupId> |
521 |
| - <artifactId>clirr-maven-plugin</artifactId> |
522 |
| - <configuration> |
523 |
| - <ignoredDifferencesFile>clirr-ignored-differences.xml</ignoredDifferencesFile> |
524 |
| - <logResults>true</logResults> |
525 |
| - </configuration> |
526 |
| - <executions> |
527 |
| - <execution> |
528 |
| - <goals> |
529 |
| - <goal>check</goal> |
530 |
| - </goals> |
531 |
| - </execution> |
532 |
| - </executions> |
533 |
| - </plugin> |
534 |
| - <plugin> |
535 |
| - <groupId>org.codehaus.mojo</groupId> |
536 |
| - <artifactId>animal-sniffer-maven-plugin</artifactId> |
537 |
| - <executions> |
538 |
| - <execution> |
539 |
| - <id>java7</id> |
540 |
| - <goals> |
541 |
| - <goal>check</goal> |
542 |
| - </goals> |
543 |
| - <configuration> |
544 |
| - <signature> |
545 |
| - <groupId>org.codehaus.mojo.signature</groupId> |
546 |
| - <artifactId>java17</artifactId> |
547 |
| - <version>1.0</version> |
548 |
| - </signature> |
549 |
| - </configuration> |
550 |
| - </execution> |
551 |
| - <execution> |
552 |
| - <id>android</id> |
553 |
| - <goals> |
554 |
| - <goal>check</goal> |
555 |
| - </goals> |
556 |
| - <configuration> |
557 |
| - <signature> |
558 |
| - <groupId>net.sf.androidscents.signature</groupId> |
559 |
| - <artifactId>android-api-level-19</artifactId> |
560 |
| - <version>4.4.2_r4</version> |
561 |
| - </signature> |
562 |
| - </configuration> |
563 |
| - </execution> |
564 |
| - </executions> |
565 |
| - </plugin> |
566 | 508 | <!-- Build the dependencies report at package time (needed for the assembly artifact). -->
|
567 | 509 | <plugin>
|
568 | 510 | <artifactId>maven-project-info-reports-plugin</artifactId>
|
|
576 | 518 | </execution>
|
577 | 519 | </executions>
|
578 | 520 | </plugin>
|
579 |
| - <plugin> |
580 |
| - <groupId>org.sonatype.plugins</groupId> |
581 |
| - <artifactId>nexus-staging-maven-plugin</artifactId> |
582 |
| - </plugin> |
583 | 521 | <plugin>
|
584 | 522 | <groupId>com.coveo</groupId>
|
585 | 523 | <artifactId>fmt-maven-plugin</artifactId>
|
|
629 | 567 | </properties>
|
630 | 568 |
|
631 | 569 | <profiles>
|
| 570 | + <profile> |
| 571 | + <id>clirr-compatibility-check</id> |
| 572 | + <!-- |
| 573 | + CLIRR Maven plugin's dependencies are quite old and not available |
| 574 | + in some build environment (Airlock). |
| 575 | + https://github.com/googleapis/java-shared-config/issues/956 |
| 576 | + Extracting this plugin declaration as a profile enables us to disable |
| 577 | + the CLIRR dependency resolution by `mvn -P=-clirr-compatibility-check ...` |
| 578 | + --> |
| 579 | + <activation> |
| 580 | + <!-- The compatibility check runs by default in CIs --> |
| 581 | + <jdk>[1.8,)</jdk> |
| 582 | + </activation> |
| 583 | + <build> |
| 584 | + <plugins> |
| 585 | + <plugin> |
| 586 | + <groupId>org.codehaus.mojo</groupId> |
| 587 | + <artifactId>clirr-maven-plugin</artifactId> |
| 588 | + <configuration> |
| 589 | + <ignoredDifferencesFile>clirr-ignored-differences.xml</ignoredDifferencesFile> |
| 590 | + <logResults>true</logResults> |
| 591 | + </configuration> |
| 592 | + <executions> |
| 593 | + <execution> |
| 594 | + <goals> |
| 595 | + <goal>check</goal> |
| 596 | + </goals> |
| 597 | + </execution> |
| 598 | + </executions> |
| 599 | + </plugin> |
| 600 | + </plugins> |
| 601 | + </build> |
| 602 | + </profile> |
| 603 | + <profile> |
| 604 | + <id>animal-sniffer</id> |
| 605 | + <activation> |
| 606 | + <!-- The compatibility check runs by default in CIs --> |
| 607 | + <jdk>[1.7,)</jdk> |
| 608 | + </activation> |
| 609 | + <build> |
| 610 | + <plugins> |
| 611 | + <plugin> |
| 612 | + <groupId>org.codehaus.mojo</groupId> |
| 613 | + <artifactId>animal-sniffer-maven-plugin</artifactId> |
| 614 | + <executions> |
| 615 | + <execution> |
| 616 | + <id>java7</id> |
| 617 | + <goals> |
| 618 | + <goal>check</goal> |
| 619 | + </goals> |
| 620 | + <configuration> |
| 621 | + <signature> |
| 622 | + <groupId>org.codehaus.mojo.signature</groupId> |
| 623 | + <artifactId>java17</artifactId> |
| 624 | + <version>1.0</version> |
| 625 | + </signature> |
| 626 | + </configuration> |
| 627 | + </execution> |
| 628 | + <execution> |
| 629 | + <id>android</id> |
| 630 | + <goals> |
| 631 | + <goal>check</goal> |
| 632 | + </goals> |
| 633 | + <configuration> |
| 634 | + <signature> |
| 635 | + <groupId>net.sf.androidscents.signature</groupId> |
| 636 | + <artifactId>android-api-level-19</artifactId> |
| 637 | + <version>4.4.2_r4</version> |
| 638 | + </signature> |
| 639 | + </configuration> |
| 640 | + </execution> |
| 641 | + </executions> |
| 642 | + </plugin> |
| 643 | + </plugins> |
| 644 | + </build> |
| 645 | + </profile> |
632 | 646 | <profile>
|
633 | 647 | <id>java21</id>
|
634 | 648 | <activation>
|
|
0 commit comments