xref: /aosp_15_r20/external/sdk-platform-java/pom.xml (revision 882aa7c72c3cd3b66e72a261bdd69b93f7de7670)
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/xsd/maven-4.0.0.xsd">
4  <modelVersion>4.0.0</modelVersion>
5  <groupId>com.google.api</groupId>
6  <artifactId>gapic-generator-java-root</artifactId>
7  <packaging>pom</packaging>
8  <!-- We do not release this root pom. No modules should depend on this -->
9  <version>0.1.0-SNAPSHOT</version>
10
11  <properties>
12    <clirr.skip>true</clirr.skip>
13    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
14  </properties>
15
16  <modules>
17    <module>gapic-generator-java-pom-parent</module>
18    <module>api-common-java</module>
19    <module>gax-java</module>
20    <module>gapic-generator-java</module>
21    <module>java-common-protos</module>
22    <module>java-iam</module>
23    <module>java-core</module>
24    <module>gapic-generator-java-bom</module>
25    <module>java-shared-dependencies</module>
26  </modules>
27  <!-- Do not deploy the aggregator POM -->
28  <build>
29    <plugins>
30      <plugin>
31        <groupId>com.coveo</groupId>
32        <artifactId>fmt-maven-plugin</artifactId>
33        <version>2.9</version>
34      </plugin>
35      <plugin>
36        <groupId>org.apache.maven.plugins</groupId>
37        <artifactId>maven-deploy-plugin</artifactId>
38        <version>3.1.1</version>
39        <configuration>
40          <skip>true</skip>
41        </configuration>
42      </plugin>
43    </plugins>
44  </build>
45  <profiles>
46    <profile>
47      <!-- profile for nexus-staging:release invocation -->
48      <id>release-staging-repository</id>
49      <activation>
50        <property>
51          <!-- The root project not using nexus-staging-maven-plugin when signing -->
52          <name>!gpg.executable</name>
53        </property>
54      </activation>
55      <distributionManagement>
56        <snapshotRepository>
57          <id>sonatype-nexus-snapshots</id>
58          <url>https://google.oss.sonatype.org/content/repositories/snapshots</url>
59        </snapshotRepository>
60        <repository>
61          <id>sonatype-nexus-staging</id>
62          <url>https://google.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
63        </repository>
64      </distributionManagement>
65      <build>
66        <plugins>
67          <plugin>
68            <!-- The root project runs nexus-staging:release task -->
69            <groupId>org.sonatype.plugins</groupId>
70            <artifactId>nexus-staging-maven-plugin</artifactId>
71            <version>1.6.13</version>
72            <extensions>true</extensions>
73            <configuration>
74              <serverId>sonatype-nexus-staging</serverId>
75              <nexusUrl>https://google.oss.sonatype.org/</nexusUrl>
76              <autoReleaseAfterClose>false</autoReleaseAfterClose>
77            </configuration>
78          </plugin>
79        </plugins>
80      </build>
81    </profile>
82
83    <profile>
84      <id>full-project-coverage</id>
85      <activation>
86        <property>
87          <name>enableFullTestCoverage</name>
88        </property>
89      </activation>
90      <modules>
91        <module>showcase</module>
92      </modules>
93    </profile>
94
95    <profile>
96      <id>activate-showcase-coverage</id>
97      <activation>
98        <property>
99          <name>enableShowcaseTestCoverage</name>
100        </property>
101      </activation>
102      <modules>
103        <module>showcase</module>
104        <module>coverage-report</module>
105      </modules>
106      <properties>
107        <sonar.coverage.jacoco.xmlReportPaths>${maven.multiModuleProjectDirectory}/coverage-report/target/site/jacoco-aggregate/jacoco.xml</sonar.coverage.jacoco.xmlReportPaths>
108      </properties>
109    </profile>
110  </profiles>
111
112</project>
113