|
22 | 22 | <maven.compiler.source>17</maven.compiler.source> |
23 | 23 | <maven.compiler.release>17</maven.compiler.release> |
24 | 24 | <maven.compiler.parameters>true</maven.compiler.parameters> |
25 | | - <maven-release-plugin.version>3.1.1</maven-release-plugin.version> |
26 | 25 | <nexus-staging-maven-plugin.version>1.7.0</nexus-staging-maven-plugin.version> |
27 | 26 | <maven-javadoc-plugin.version>3.11.1</maven-javadoc-plugin.version> |
28 | 27 | <maven-source-plugin.version>3.3.1</maven-source-plugin.version> |
29 | 28 | <maven-shade-plugin.version>3.6.0</maven-shade-plugin.version> |
| 29 | + <version.gpg.plugin>3.2.7</version.gpg.plugin> |
| 30 | + |
| 31 | + <gpg.sign.skip>true</gpg.sign.skip> |
30 | 32 |
|
31 | 33 | <!-- Repository Deployment URLs --> |
32 | 34 | <ossrh.releases.repo.id>ossrh</ossrh.releases.repo.id> |
|
152 | 154 | </transformers> |
153 | 155 | </configuration> |
154 | 156 | </plugin> |
| 157 | + <plugin> |
| 158 | + <groupId>org.apache.maven.plugins</groupId> |
| 159 | + <artifactId>maven-gpg-plugin</artifactId> |
| 160 | + <version>${version.gpg.plugin}</version> |
| 161 | + <executions> |
| 162 | + <execution> |
| 163 | + <id>sign-artifacts</id> |
| 164 | + <phase>verify</phase> |
| 165 | + <goals> |
| 166 | + <goal>sign</goal> |
| 167 | + </goals> |
| 168 | + <configuration> |
| 169 | + <skip>${gpg.sign.skip}</skip> |
| 170 | + <homedir>${env.RELEASE_GPG_HOMEDIR}</homedir> |
| 171 | + <bestPractices>true</bestPractices> |
| 172 | + </configuration> |
| 173 | + </execution> |
| 174 | + </executions> |
| 175 | + </plugin> |
155 | 176 | </plugins> |
156 | 177 | </build> |
157 | 178 |
|
|
206 | 227 | <profiles> |
207 | 228 | <profile> |
208 | 229 | <id>release</id> |
| 230 | + <activation> |
| 231 | + <property> |
| 232 | + <name>performRelease</name> |
| 233 | + <value>true</value> |
| 234 | + </property> |
| 235 | + </activation> |
| 236 | + <properties> |
| 237 | + <gpg.sign.skip>false</gpg.sign.skip> |
| 238 | + </properties> |
209 | 239 | <build> |
210 | 240 | <plugins> |
211 | | - <plugin> |
212 | | - <groupId>org.apache.maven.plugins</groupId> |
213 | | - <artifactId>maven-release-plugin</artifactId> |
214 | | - <version>${maven-release-plugin.version}</version> |
215 | | - <configuration> |
216 | | - <autoVersionSubmodules>true</autoVersionSubmodules> |
217 | | - <tagNameFormat>@{project.version}</tagNameFormat> |
218 | | - <localCheckout>true</localCheckout> |
219 | | - </configuration> |
220 | | - </plugin> |
221 | 241 | <plugin> |
222 | 242 | <groupId>org.sonatype.plugins</groupId> |
223 | 243 | <artifactId>nexus-staging-maven-plugin</artifactId> |
|
0 commit comments