|
1 | 1 | <?xml version='1.0' encoding='UTF-8'?>
|
2 |
| -<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/xsd/maven-4.0.0.xsd"> |
| 2 | +<project xmlns="http://maven.apache.org/POM/4.0.0" |
| 3 | + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 4 | + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
3 | 5 | <modelVersion>4.0.0</modelVersion>
|
4 | 6 | <groupId>com.google.cloud</groupId>
|
5 | 7 | <artifactId>google-cloud-shared-config</artifactId>
|
|
26 | 28 | </organization>
|
27 | 29 | <scm>
|
28 | 30 | <connection>scm:git:git@github.com:googleapis/java-shared-config.git</connection>
|
29 |
| - <developerConnection>scm:git:git@github.com:googleapis/java-shared-config.git</developerConnection> |
| 31 | + <developerConnection>scm:git:git@github.com:googleapis/java-shared-config.git |
| 32 | + </developerConnection> |
30 | 33 | <url>https://github.com/googleapis/java-shared-config</url>
|
31 | 34 | <tag>HEAD</tag>
|
32 | 35 | </scm>
|
|
195 | 198 | <version>3.1.2</version>
|
196 | 199 | <configuration>
|
197 | 200 | <ignoredUnusedDeclaredDependencies>
|
198 |
| - <ignoredUnusedDeclaredDependency>javax.annotation:javax.annotation-api</ignoredUnusedDeclaredDependency> |
| 201 | + <ignoredUnusedDeclaredDependency>javax.annotation:javax.annotation-api |
| 202 | + </ignoredUnusedDeclaredDependency> |
199 | 203 | </ignoredUnusedDeclaredDependencies>
|
200 | 204 | </configuration>
|
201 | 205 | </plugin>
|
|
640 | 644 | </plugins>
|
641 | 645 | </build>
|
642 | 646 | </profile>
|
| 647 | + |
643 | 648 | <profile>
|
644 | 649 | <id>enable-integration-tests</id>
|
645 | 650 | <properties>
|
646 | 651 | <skipITs>false</skipITs>
|
647 | 652 | </properties>
|
648 | 653 | </profile>
|
| 654 | + |
| 655 | + <profile> |
| 656 | + <!-- NOTE - this profile is still in progress and needs work --> |
| 657 | + <id>docFX</id> |
| 658 | + <activation> |
| 659 | + <property> |
| 660 | + <name>docFX</name> |
| 661 | + </property> |
| 662 | + </activation> |
| 663 | + <build> |
| 664 | + <plugins> |
| 665 | + <plugin> |
| 666 | + <groupId>org.apache.maven.plugins</groupId> |
| 667 | + <artifactId>maven-javadoc-plugin</artifactId> |
| 668 | + <version>3.2.0</version> |
| 669 | + <executions> |
| 670 | + <execution> |
| 671 | + <phase>site</phase> |
| 672 | + <goals> |
| 673 | + <goal>aggregate</goal> |
| 674 | + </goals> |
| 675 | + </execution> |
| 676 | + </executions> |
| 677 | + <configuration> |
| 678 | + <doclet>com.microsoft.doclet.DocFxDoclet</doclet> |
| 679 | + <docletArtifact> |
| 680 | + <groupId>com.microsoft</groupId> |
| 681 | + <artifactId>docfx-doclet</artifactId> |
| 682 | + <version>1.0-SNAPSHOT</version><!-- this is temporary - NO PRODUCTION USE --> |
| 683 | + </docletArtifact> |
| 684 | + <additionalDependencies> |
| 685 | + <additionalDependency> |
| 686 | + <groupId>com.google.j2objc</groupId> |
| 687 | + <artifactId>j2objc-annotations</artifactId> |
| 688 | + <version>1.3</version> |
| 689 | + </additionalDependency> |
| 690 | + </additionalDependencies> |
| 691 | + <useStandardDocletOptions>false</useStandardDocletOptions> |
| 692 | + <additionalOptions>-outputpath ${project.build.directory}/docfx/</additionalOptions> |
| 693 | + <!-- Add additional options here when needed --> |
| 694 | + </configuration> |
| 695 | + </plugin> |
| 696 | + </plugins> |
| 697 | + </build> |
| 698 | + </profile> |
| 699 | + |
649 | 700 | <profile>
|
650 | 701 | <id>devsite-apidocs</id>
|
651 | 702 | <activation>
|
|
656 | 707 | </activation>
|
657 | 708 | <build>
|
658 | 709 | <plugins>
|
| 710 | + <!-- WARNING - JavaDoc / DocLava must be run using Java 8 and nothing higher |
| 711 | + AntRun version must be the correct version or the syntax below is incorrect! --> |
659 | 712 | <plugin>
|
660 | 713 | <!-- Generate API docs using Doclava for the developer site. -->
|
661 | 714 | <artifactId>maven-javadoc-plugin</artifactId>
|
|
693 | 746 | <additionalOption>/java/_project.yaml</additionalOption>
|
694 | 747 | <additionalOption>-hdf</additionalOption>
|
695 | 748 | <additionalOption>devsite.path</additionalOption>
|
696 |
| - <additionalOption>${docRoot}</additionalOption> |
| 749 | + <additionalOption>${docRoot}${env.NAME}/latest/</additionalOption> |
697 | 750 | <additionalOption>-d</additionalOption>
|
698 | 751 | <additionalOption>${project.build.directory}/devsite</additionalOption>
|
699 | 752 | <additionalOption>-templatedir</additionalOption>
|
700 | 753 | <additionalOption>${devsite.template}</additionalOption>
|
701 | 754 | <additionalOption>-toroot</additionalOption>
|
702 |
| - <additionalOption>${docRoot}</additionalOption> |
| 755 | + <additionalOption>${docRoot}${env.NAME}/latest/</additionalOption> |
703 | 756 | <additionalOption>-yaml</additionalOption>
|
704 | 757 | <additionalOption>_toc.yaml</additionalOption>
|
705 | 758 | <additionalOption>-warning</additionalOption>
|
|
711 | 764 | <plugin>
|
712 | 765 | <!-- Clean up some references and files. -->
|
713 | 766 | <artifactId>maven-antrun-plugin</artifactId>
|
714 |
| - <version>1.8</version> |
| 767 | + <version>3.0.0</version> |
715 | 768 | <executions>
|
716 | 769 | <execution>
|
717 | 770 | <phase>site</phase>
|
|
720 | 773 | </goals>
|
721 | 774 | <configuration>
|
722 | 775 | <target>
|
723 |
| - <echo message="Updating relative links in API docs" /> |
724 |
| - <!-- TODO: What is the right behavior for io* and google*? --> |
725 |
| - <replace dir="${project.build.directory}/devsite" token="href="com" value="href="${docRoot}com" /> |
726 |
| - <replace dir="${project.build.directory}/devsite" token="href="io" value="href="${docRoot}io" /> |
727 |
| - <replace dir="${project.build.directory}/devsite" token="href="google" value="href="${docRoot}google" /> |
728 |
| - <copy file="${project.build.directory}/devsite/assets/_toc.yaml" todir="${project.build.directory}/devsite/reference" /> |
729 |
| - <echo message="Removing files not needed by Devsite" /> |
730 |
| - <delete file="${project.build.directory}/devsite/reference/classes.html" /> |
731 |
| - <delete file="${project.build.directory}/devsite/reference/hierarchy.html" /> |
732 |
| - <delete file="${project.build.directory}/devsite/reference/index.html" /> |
733 |
| - <delete file="${project.build.directory}/devsite/reference/lists.js" /> |
734 |
| - <delete file="${project.build.directory}/devsite/reference/packages.html" /> |
735 |
| - <delete file="${project.build.directory}/devsite/reference/current.xml" /> |
| 776 | + <echo message="Removing files not needed by CloudSite / DevSite"/> |
| 777 | + <delete file="${project.build.directory}/devsite/reference/classes.html"/> |
| 778 | + <delete file="${project.build.directory}/devsite/reference/index.html"/> |
| 779 | + <delete file="${project.build.directory}/devsite/reference/packages.html"/> |
| 780 | + <delete file="${project.build.directory}/devsite/reference/hierarchy.html"/> |
| 781 | + <delete file="${project.build.directory}/devsite/reference/lists.js"/> |
| 782 | + <delete file="${project.build.directory}/devsite/reference/current.xml"/> |
| 783 | + |
| 784 | + <echo message="duplicating _toc.yaml" /> |
| 785 | + <copy |
| 786 | + file="${project.build.directory}/devsite/assets/_toc.yaml" |
| 787 | + todir="${project.build.directory}/devsite/reference" /> |
736 | 788 | </target>
|
737 | 789 | </configuration>
|
738 | 790 | </execution>
|
|
0 commit comments