|
19 | 19 | <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"> |
20 | 20 | <modelVersion>4.0.0</modelVersion> |
21 | 21 |
|
22 | | - <parent> |
23 | | - <groupId>org.sonatype.oss</groupId> |
24 | | - <artifactId>oss-parent</artifactId> |
25 | | - <version>9</version> |
26 | | - </parent> |
27 | | - |
28 | 22 | <groupId>com.google.fhir.gateway</groupId> |
29 | 23 | <artifactId>fhir-gateway</artifactId> |
30 | 24 | <version>0.5.0</version> |
|
42 | 36 | </license> |
43 | 37 | </licenses> |
44 | 38 |
|
| 39 | + <developers> |
| 40 | + <!-- A Sonatype requirement is to have someone here. For the full list of contributors see: |
| 41 | + https://github.com/google/fhir-gateway/graphs/contributors --> |
| 42 | + <developer> |
| 43 | + <id>bashir</id> |
| 44 | + <name>Bashir Sadjad</name> |
| 45 | + <email>bashir@google.com</email> |
| 46 | + </developer> |
| 47 | + </developers> |
| 48 | + |
45 | 49 | <modules> |
46 | 50 | <module>exec</module> |
47 | 51 | <module>plugins</module> |
|
55 | 59 | <url>https://github.com/google/fhir-gateway/tree/main</url> |
56 | 60 | </scm> |
57 | 61 |
|
58 | | - <!-- For release documentation see: |
59 | | - https://central.sonatype.org/publish/publish-maven/ |
60 | | - Note, although it suggests new projects should use s01.oss.sonatype.org but |
61 | | - with our sonatype.org credentials, it fails with a "Forbidden" message. --> |
62 | | - <distributionManagement> |
63 | | - <repository> |
64 | | - <id>ossrh</id> |
65 | | - <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url> |
66 | | - </repository> |
67 | | - <snapshotRepository> |
68 | | - <id>ossrh</id> |
69 | | - <url>https://oss.sonatype.org/content/repositories/snapshots</url> |
70 | | - </snapshotRepository> |
71 | | - </distributionManagement> |
72 | | - |
73 | 62 | <properties> |
74 | 63 | <hapifhir_version>8.0.0</hapifhir_version> |
75 | 64 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
|
290 | 279 | <target>17</target> |
291 | 280 | </configuration> |
292 | 281 | </plugin> |
| 282 | + |
| 283 | + <!-- source jars are needed for Maven Central deployment --> |
| 284 | + <plugin> |
| 285 | + <groupId>org.apache.maven.plugins</groupId> |
| 286 | + <artifactId>maven-source-plugin</artifactId> |
| 287 | + <version>3.3.1</version> |
| 288 | + <executions> |
| 289 | + <execution> |
| 290 | + <id>attach-sources</id> |
| 291 | + <phase>verify</phase> |
| 292 | + <goals> |
| 293 | + <goal>jar-no-fork</goal> |
| 294 | + </goals> |
| 295 | + </execution> |
| 296 | + </executions> |
| 297 | + </plugin> |
| 298 | + |
| 299 | + <!-- javadoc jars are needed for Maven Central deployment --> |
| 300 | + <plugin> |
| 301 | + <groupId>org.apache.maven.plugins</groupId> |
| 302 | + <artifactId>maven-javadoc-plugin</artifactId> |
| 303 | + <version>3.12.0</version> |
| 304 | + <executions> |
| 305 | + <execution> |
| 306 | + <id>attach-javadocs</id> |
| 307 | + <goals> |
| 308 | + <goal>jar</goal> |
| 309 | + </goals> |
| 310 | + </execution> |
| 311 | + </executions> |
| 312 | + </plugin> |
| 313 | + |
| 314 | + <!-- We need to sign to deploy on Maven Central; we do this |
| 315 | + only in the deploy phase not to impact install. --> |
| 316 | + <plugin> |
| 317 | + <groupId>org.apache.maven.plugins</groupId> |
| 318 | + <artifactId>maven-gpg-plugin</artifactId> |
| 319 | + <version>3.2.8</version> |
| 320 | + <executions> |
| 321 | + <execution> |
| 322 | + <id>sign-artifacts</id> |
| 323 | + <phase>deploy</phase> |
| 324 | + <goals> |
| 325 | + <goal>sign</goal> |
| 326 | + </goals> |
| 327 | + </execution> |
| 328 | + </executions> |
| 329 | + </plugin> |
| 330 | + |
| 331 | + <!-- See https://central.sonatype.org/publish/publish-portal-maven/ |
| 332 | + Keep this after GPG step above to upload signature files too. --> |
| 333 | + <plugin> |
| 334 | + <groupId>org.sonatype.central</groupId> |
| 335 | + <artifactId>central-publishing-maven-plugin</artifactId> |
| 336 | + <version>0.9.0</version> |
| 337 | + <extensions>true</extensions> |
| 338 | + <configuration> |
| 339 | + <publishingServerId>central</publishingServerId> |
| 340 | + </configuration> |
| 341 | + </plugin> |
| 342 | + |
293 | 343 | </plugins> |
294 | 344 | </build> |
295 | 345 |
|
|
0 commit comments