|
16 | 16 | <!--
|
17 | 17 | plugins defined here are required by all projects
|
18 | 18 | -->
|
| 19 | + <central-publishing-maven-plugin.version>0.5.0</central-publishing-maven-plugin.version> |
19 | 20 | <maven-deploy-plugin.version>${maven-install-plugin.version}</maven-deploy-plugin.version>
|
20 |
| - <maven-gpg-plugin.version>3.0.1</maven-gpg-plugin.version> |
21 |
| - <maven-install-plugin.version>3.1.0</maven-install-plugin.version> |
22 |
| - <maven-release-plugin.version>3.0.0-M7</maven-release-plugin.version> |
23 |
| - <nexus-staging-plugin.version>1.6.13</nexus-staging-plugin.version> |
| 21 | + <maven-gpg-plugin.version>3.2.5</maven-gpg-plugin.version> |
| 22 | + <maven-install-plugin.version>3.1.3</maven-install-plugin.version> |
| 23 | + <maven-release-plugin.version>3.1.1</maven-release-plugin.version> |
24 | 24 | </properties>
|
25 | 25 |
|
26 | 26 | <build>
|
|
60 | 60 | </configuration>
|
61 | 61 | </plugin>
|
62 | 62 | <plugin>
|
63 |
| - <groupId>org.sonatype.plugins</groupId> |
64 |
| - <artifactId>nexus-staging-maven-plugin</artifactId> |
65 |
| - <version>${nexus-staging-plugin.version}</version> |
| 63 | + <groupId>org.sonatype.central</groupId> |
| 64 | + <artifactId>central-publishing-maven-plugin</artifactId> |
| 65 | + <version>${central-publishing-maven-plugin.version}</version> |
66 | 66 | <extensions>true</extensions>
|
67 | 67 | <configuration>
|
68 |
| - <serverId>ossrh</serverId> |
69 |
| - <autoReleaseAfterClose>true</autoReleaseAfterClose> |
| 68 | + <deploymentName>${project.artifactId}-${project.version}</deploymentName> |
| 69 | + <publishingServerId>central</publishingServerId> |
| 70 | + <autoPublish>true</autoPublish> |
| 71 | + <waitUntil>published</waitUntil> |
70 | 72 | </configuration>
|
71 | 73 | </plugin>
|
72 | 74 | </plugins>
|
|
105 | 107 | <url>https://github.com/dangernoodle-io/dangernoodle-io-org-pom/issues</url>
|
106 | 108 | </issueManagement>
|
107 | 109 |
|
108 |
| - <distributionManagement> |
109 |
| - <snapshotRepository> |
110 |
| - <id>ossrh</id> |
111 |
| - <url>https://oss.sonatype.org/content/repositories/snapshots</url> |
112 |
| - </snapshotRepository> |
113 |
| - <repository> |
114 |
| - <id>ossrh</id> |
115 |
| - <url>https://oss.sonatype.org/service/local/staging/deploy/maven2</url> |
116 |
| - </repository> |
117 |
| - </distributionManagement> |
118 |
| - |
119 | 110 | <profiles>
|
| 111 | + <profile> |
| 112 | + <id>github</id> |
| 113 | + <activation> |
| 114 | + <property> |
| 115 | + <name>MAVEN_GPG_PASSPHRASE</name> |
| 116 | + </property> |
| 117 | + </activation> |
| 118 | + <build> |
| 119 | + <plugins> |
| 120 | + <plugin> |
| 121 | + <groupId>org.apache.maven.plugins</groupId> |
| 122 | + <artifactId>maven-gpg-plugin</artifactId> |
| 123 | + <configuration> |
| 124 | + <signer>bc</signer> |
| 125 | + </configuration> |
| 126 | + </plugin> |
| 127 | + </plugins> |
| 128 | + </build> |
| 129 | + </profile> |
120 | 130 | <profile>
|
121 | 131 | <id>release</id>
|
122 | 132 | <build>
|
|
126 | 136 | <artifactId>maven-gpg-plugin</artifactId>
|
127 | 137 | </plugin>
|
128 | 138 | <plugin>
|
129 |
| - <groupId>org.sonatype.plugins</groupId> |
130 |
| - <artifactId>nexus-staging-maven-plugin</artifactId> |
| 139 | + <groupId>org.sonatype.central</groupId> |
| 140 | + <artifactId>central-publishing-maven-plugin</artifactId> |
131 | 141 | </plugin>
|
132 | 142 | </plugins>
|
133 | 143 | </build>
|
|
0 commit comments