|
56 | 56 | <maven-jar-plugin.version>3.4.2</maven-jar-plugin.version> |
57 | 57 | <maven-install-plugin.version>3.1.2</maven-install-plugin.version> |
58 | 58 | <download-maven-plugin.version>1.7.1</download-maven-plugin.version> |
59 | | - <!-- Ensure GPG is enabled by default for releases --> |
60 | | - <gpg.skip>false</gpg.skip> |
61 | 59 | </properties> |
62 | 60 |
|
63 | 61 |
|
|
157 | 155 | </execution> |
158 | 156 | </executions> |
159 | 157 | </plugin> |
160 | | - <plugin> |
161 | | - <groupId>org.apache.maven.plugins</groupId> |
162 | | - <artifactId>maven-gpg-plugin</artifactId> |
163 | | - <version>3.1.0</version> |
164 | | - <executions> |
165 | | - <execution> |
166 | | - <id>sign-artifacts</id> |
167 | | - <phase>verify</phase> |
168 | | - <goals> |
169 | | - <goal>sign</goal> |
170 | | - </goals> |
171 | | - </execution> |
172 | | - </executions> |
173 | | - <configuration> |
174 | | - <skip>${gpg.skip}</skip> |
175 | | - <gpgArguments> |
176 | | - <arg>--pinentry-mode</arg> |
177 | | - <arg>loopback</arg> |
178 | | - </gpgArguments> |
179 | | - </configuration> |
180 | | - </plugin> |
181 | | - <plugin> |
182 | | - <groupId>org.sonatype.central</groupId> |
183 | | - <artifactId>central-publishing-maven-plugin</artifactId> |
184 | | - <version>0.6.0</version> |
185 | | - <extensions>true</extensions> |
186 | | - <configuration> |
187 | | - <publishingServerId>central</publishingServerId> |
188 | | - <autoPublish>true</autoPublish> |
189 | | - <waitUntil>published</waitUntil> |
190 | | - </configuration> |
191 | | - </plugin> |
| 158 | + |
192 | 159 | </plugins> |
193 | 160 | </build> |
194 | 161 |
|
|
200 | 167 | </snapshotRepository> |
201 | 168 | </distributionManagement> |
202 | 169 |
|
| 170 | + <profiles> |
| 171 | + <profile> |
| 172 | + <id>release</id> |
| 173 | + <build> |
| 174 | + <plugins> |
| 175 | + <plugin> |
| 176 | + <groupId>org.apache.maven.plugins</groupId> |
| 177 | + <artifactId>maven-gpg-plugin</artifactId> |
| 178 | + <version>3.1.0</version> |
| 179 | + <executions> |
| 180 | + <execution> |
| 181 | + <id>sign-artifacts</id> |
| 182 | + <phase>verify</phase> |
| 183 | + <goals> |
| 184 | + <goal>sign</goal> |
| 185 | + </goals> |
| 186 | + </execution> |
| 187 | + </executions> |
| 188 | + <configuration> |
| 189 | + <gpgArguments> |
| 190 | + <arg>--pinentry-mode</arg> |
| 191 | + <arg>loopback</arg> |
| 192 | + </gpgArguments> |
| 193 | + </configuration> |
| 194 | + </plugin> |
| 195 | + <plugin> |
| 196 | + <groupId>org.sonatype.central</groupId> |
| 197 | + <artifactId>central-publishing-maven-plugin</artifactId> |
| 198 | + <version>0.6.0</version> |
| 199 | + <extensions>true</extensions> |
| 200 | + <configuration> |
| 201 | + <publishingServerId>central</publishingServerId> |
| 202 | + <autoPublish>true</autoPublish> |
| 203 | + <waitUntil>published</waitUntil> |
| 204 | + </configuration> |
| 205 | + </plugin> |
| 206 | + </plugins> |
| 207 | + </build> |
| 208 | + </profile> |
| 209 | + </profiles> |
| 210 | + |
203 | 211 | </project> |
0 commit comments