|
19 | 19 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
20 | 20 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
21 | 21 | <modelVersion>4.0.0</modelVersion> |
22 | | - <parent> |
23 | | - <groupId>org.sonatype.oss</groupId> |
24 | | - <artifactId>oss-parent</artifactId> |
25 | | - <version>7</version> |
26 | | - </parent> |
27 | 22 |
|
28 | 23 | <groupId>com.google.googlejavaformat</groupId> |
29 | 24 | <artifactId>google-java-format-parent</artifactId> |
|
99 | 94 | <truth.version>1.0</truth.version> |
100 | 95 | <checker.version>3.6.1</checker.version> |
101 | 96 | <errorprone.version>2.7.1</errorprone.version> |
| 97 | + <maven-javadoc-plugin.version>3.1.0</maven-javadoc-plugin.version> |
| 98 | + <maven-source-plugin.version>3.2.1</maven-source-plugin.version> |
102 | 99 | </properties> |
103 | 100 |
|
104 | 101 | <dependencyManagement> |
|
277 | 274 | </plugin> |
278 | 275 | </plugins> |
279 | 276 | </build> |
| 277 | + |
| 278 | + <distributionManagement> |
| 279 | + <snapshotRepository> |
| 280 | + <id>sonatype-nexus-snapshots</id> |
| 281 | + <name>Sonatype Nexus Snapshots</name> |
| 282 | + <url>https://oss.sonatype.org/content/repositories/snapshots/</url> |
| 283 | + </snapshotRepository> |
| 284 | + <repository> |
| 285 | + <id>sonatype-nexus-staging</id> |
| 286 | + <name>Nexus Release Repository</name> |
| 287 | + <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url> |
| 288 | + </repository> |
| 289 | + </distributionManagement> |
| 290 | + |
| 291 | + <profiles> |
| 292 | + <profile> |
| 293 | + <id>sonatype-oss-release</id> |
| 294 | + <build> |
| 295 | + <plugins> |
| 296 | + <plugin> |
| 297 | + <groupId>org.apache.maven.plugins</groupId> |
| 298 | + <artifactId>maven-source-plugin</artifactId> |
| 299 | + <version>${maven-source-plugin.version}</version> |
| 300 | + <executions> |
| 301 | + <execution> |
| 302 | + <id>attach-sources</id> |
| 303 | + <goals> |
| 304 | + <goal>jar-no-fork</goal> |
| 305 | + </goals> |
| 306 | + </execution> |
| 307 | + </executions> |
| 308 | + </plugin> |
| 309 | + <plugin> |
| 310 | + <groupId>org.apache.maven.plugins</groupId> |
| 311 | + <artifactId>maven-javadoc-plugin</artifactId> |
| 312 | + <version>${maven-javadoc-plugin.version}</version> |
| 313 | + <executions> |
| 314 | + <execution> |
| 315 | + <id>attach-javadocs</id> |
| 316 | + <goals> |
| 317 | + <goal>jar</goal> |
| 318 | + </goals> |
| 319 | + </execution> |
| 320 | + </executions> |
| 321 | + </plugin> |
| 322 | + <plugin> |
| 323 | + <groupId>org.apache.maven.plugins</groupId> |
| 324 | + <artifactId>maven-gpg-plugin</artifactId> |
| 325 | + <version>1.6</version> |
| 326 | + <executions> |
| 327 | + <execution> |
| 328 | + <id>sign-artifacts</id> |
| 329 | + <phase>verify</phase> |
| 330 | + <goals> |
| 331 | + <goal>sign</goal> |
| 332 | + </goals> |
| 333 | + </execution> |
| 334 | + </executions> |
| 335 | + </plugin> |
| 336 | + </plugins> |
| 337 | + </build> |
| 338 | + </profile> |
| 339 | + </profiles> |
280 | 340 | </project> |
0 commit comments