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/maven-v4_0_0.xsd"> 3 <modelVersion>4.0.0</modelVersion> 4 5 <groupId>com.google.protobuf</groupId> 6 <artifactId>protobuf-parent</artifactId> 7 <version>3.21.12</version> 8 <packaging>pom</packaging> 9 10 <name>Protocol Buffers [Parent]</name> 11 <inceptionYear>2008</inceptionYear> 12 <url>https://developers.google.com/protocol-buffers/</url> 13 <description> 14 Protocol Buffers are a way of encoding structured data in an efficient yet 15 extensible format. 16 </description> 17 18 <developers> 19 <developer> 20 <id>haon</id> 21 <name>Hao Nguyen</name> 22 <email>[email protected]</email> 23 <organization>Google</organization> 24 <organizationUrl>https://cloud.google.com</organizationUrl> 25 <timezone>America/Los_Angeles</timezone> 26 </developer> 27 </developers> 28 29 <properties> 30 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> 31 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> 32 33 <!-- These are relative to the submodules --> 34 <protobuf.basedir>${project.basedir}/../..</protobuf.basedir> 35 <protobuf.source.dir>${protobuf.basedir}/src</protobuf.source.dir> 36 <protoc>${protobuf.source.dir}/protoc</protoc> 37 <test.proto.dir>src/test/proto</test.proto.dir> 38 <generated.sources.dir>${project.build.directory}/generated-sources</generated.sources.dir> 39 <generated.testsources.dir>${project.build.directory}/generated-test-sources</generated.testsources.dir> 40 </properties> 41 42 <licenses> 43 <license> 44 <name>BSD-3-Clause</name> 45 <url>https://opensource.org/licenses/BSD-3-Clause</url> 46 <distribution>repo</distribution> 47 </license> 48 </licenses> 49 50 <scm> 51 <url>https://github.com/protocolbuffers/protobuf</url> 52 <connection>scm:git:https://github.com/protocolbuffers/protobuf.git</connection> 53 </scm> 54 55 <distributionManagement> 56 <snapshotRepository> 57 <id>sonatype-nexus-staging</id> 58 <url>https://oss.sonatype.org/content/repositories/snapshots</url> 59 </snapshotRepository> 60 <repository> 61 <id>sonatype-nexus-staging</id> 62 <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url> 63 </repository> 64 </distributionManagement> 65 66 <dependencyManagement> 67 <dependencies> 68 <dependency> 69 <groupId>com.google.protobuf</groupId> 70 <artifactId>protobuf-bom</artifactId> 71 <version>${project.version}</version> 72 <type>pom</type> 73 <scope>import</scope> 74 </dependency> 75 <dependency> 76 <groupId>junit</groupId> 77 <artifactId>junit</artifactId> 78 <version>4.13.2</version> 79 <scope>test</scope> 80 </dependency> 81 <dependency> 82 <groupId>org.mockito</groupId> 83 <artifactId>mockito-core</artifactId> 84 <version>4.3.1</version> 85 <scope>test</scope> 86 </dependency> 87 <dependency> 88 <groupId>com.google.guava</groupId> 89 <artifactId>guava</artifactId> 90 <version>31.1-android</version> 91 </dependency> 92 <dependency> 93 <groupId>com.google.guava</groupId> 94 <artifactId>guava-testlib</artifactId> 95 <version>31.1-android</version> 96 <scope>test</scope> 97 </dependency> 98 <dependency> 99 <groupId>com.google.truth</groupId> 100 <artifactId>truth</artifactId> 101 <version>1.1.2</version> 102 <scope>test</scope> 103 </dependency> 104 </dependencies> 105 </dependencyManagement> 106 107 <build> 108 <pluginManagement> 109 <plugins> 110 <plugin> 111 <artifactId>maven-compiler-plugin</artifactId> 112 <version>3.6.1</version> 113 <configuration> 114 <source>1.7</source> 115 <target>1.7</target> 116 </configuration> 117 </plugin> 118 <plugin> 119 <artifactId>maven-source-plugin</artifactId> 120 <version>2.4</version> 121 <executions> 122 <execution> 123 <id>attach-sources</id> 124 <goals> 125 <goal>jar-no-fork</goal> 126 </goals> 127 </execution> 128 </executions> 129 </plugin> 130 <plugin> 131 <artifactId>maven-javadoc-plugin</artifactId> 132 <version>2.10.3</version> 133 <executions> 134 <execution> 135 <id>attach-javadocs</id> 136 <goals> 137 <goal>jar</goal> 138 </goals> 139 <configuration> 140 <failOnError>false</failOnError> 141 </configuration> 142 </execution> 143 </executions> 144 </plugin> 145 <plugin> 146 <artifactId>maven-jar-plugin</artifactId> 147 <version>2.6</version> 148 </plugin> 149 <plugin> 150 <groupId>org.codehaus.mojo</groupId> 151 <artifactId>build-helper-maven-plugin</artifactId> 152 <version>1.10</version> 153 </plugin> 154 <plugin> 155 <groupId>org.apache.felix</groupId> 156 <artifactId>maven-bundle-plugin</artifactId> 157 <version>3.0.1</version> 158 </plugin> 159 <plugin> 160 <artifactId>maven-antrun-plugin</artifactId> 161 <version>3.0.0</version> 162 </plugin> 163 <plugin> 164 <artifactId>maven-surefire-plugin</artifactId> 165 <version>3.0.0-M5</version> 166 </plugin> 167 <plugin> 168 <groupId>org.codehaus.mojo</groupId> 169 <artifactId>animal-sniffer-maven-plugin</artifactId> 170 <version>1.20</version> 171 </plugin> 172 </plugins> 173 </pluginManagement> 174 175 <plugins> 176 <plugin> 177 <groupId>org.codehaus.mojo</groupId> 178 <artifactId>animal-sniffer-maven-plugin</artifactId> 179 <configuration> 180 <signature> 181 <groupId>net.sf.androidscents.signature</groupId> 182 <artifactId>android-api-level-14</artifactId> 183 <version>4.0_r4</version> 184 </signature> 185 <ignores> 186 <ignore>sun.misc.Unsafe</ignore> 187 </ignores> 188 </configuration> 189 <executions> 190 <execution> 191 <id>android</id> 192 <phase>test</phase> 193 <goals> 194 <goal>check</goal> 195 </goals> 196 </execution> 197 </executions> 198 </plugin> 199 </plugins> 200 </build> 201 202 <profiles> 203 <profile> 204 <id>release</id> 205 <build> 206 <plugins> 207 <plugin> 208 <groupId>org.apache.maven.plugins</groupId> 209 <artifactId>maven-source-plugin</artifactId> 210 <version>2.2.1</version> 211 <executions> 212 <execution> 213 <id>attach-sources</id> 214 <goals> 215 <goal>jar-no-fork</goal> 216 </goals> 217 </execution> 218 </executions> 219 </plugin> 220 <plugin> 221 <groupId>org.apache.maven.plugins</groupId> 222 <artifactId>maven-javadoc-plugin</artifactId> 223 <version>2.10.3</version> 224 <executions> 225 <execution> 226 <id>attach-javadocs</id> 227 <goals> 228 <goal>jar</goal> 229 </goals> 230 <configuration> 231 <failOnError>false</failOnError> 232 </configuration> 233 </execution> 234 </executions> 235 </plugin> 236 <plugin> 237 <artifactId>maven-gpg-plugin</artifactId> 238 <version>1.6</version> 239 <executions> 240 <execution> 241 <id>sign-artifacts</id> 242 <phase>verify</phase> 243 <goals> 244 <goal>sign</goal> 245 </goals> 246 </execution> 247 </executions> 248 </plugin> 249 <plugin> 250 <groupId>org.sonatype.plugins</groupId> 251 <artifactId>nexus-staging-maven-plugin</artifactId> 252 <version>1.6.6</version> 253 <extensions>true</extensions> 254 <configuration> 255 <serverId>sonatype-nexus-staging</serverId> 256 <nexusUrl>https://oss.sonatype.org/</nexusUrl> 257 <autoReleaseAfterClose>false</autoReleaseAfterClose> 258 </configuration> 259 </plugin> 260 <plugin> 261 <groupId>org.jetbrains.dokka</groupId> 262 <artifactId>dokka-maven-plugin</artifactId> 263 <version>1.4.32</version> 264 <executions> 265 <execution> 266 <phase>prepare-package</phase> 267 <goals> 268 <goal>javadocJar</goal> 269 </goals> 270 </execution> 271 </executions> 272 </plugin> 273 </plugins> 274 </build> 275 </profile> 276 </profiles> 277 278 <modules> 279 <module>bom</module> 280 <module>lite</module> 281 <module>core</module> 282 <module>util</module> 283 <module>kotlin</module> 284 <module>kotlin-lite</module> 285 </modules> 286 287</project> 288