|
20 | 20 | </license> |
21 | 21 | </licenses> |
22 | 22 |
|
23 | | - <distributionManagement> |
24 | | - <repository> |
25 | | - <id>github</id> |
26 | | - <name>GitHub Packages</name> |
27 | | - <url>https://maven.pkg.github.com/scalecube/scalecube-parent</url> |
28 | | - </repository> |
29 | | - </distributionManagement> |
30 | | - |
31 | 23 | <scm> |
32 | 24 | <url>https://scalecube.io</url> |
33 | 25 | <connection>scm:git:https://github.com/scalecube/scalecube-parent.git</connection> |
|
63 | 55 | <maven-jar-plugin.version>3.2.0</maven-jar-plugin.version> |
64 | 56 | <maven-dependency-plugin.version>3.1.2</maven-dependency-plugin.version> |
65 | 57 | <versions-maven-plugin.version>2.7</versions-maven-plugin.version> |
| 58 | + <maven-gpg-plugin.version>1.6</maven-gpg-plugin.version> |
| 59 | + <nexus-staging-maven-plugin.version>1.6.8</nexus-staging-maven-plugin.version> |
66 | 60 |
|
67 | 61 | <!-- check style configuration --> |
68 | 62 | <checkstyle.config.location>google_checks.xml</checkstyle.config.location> |
|
200 | 194 | <releaseProfiles>release</releaseProfiles> |
201 | 195 | <tagNameFormat>release-@{project.version}</tagNameFormat> |
202 | 196 | <goals>deploy</goals> |
203 | | - <username>${env.GITHUB_ACTOR}</username> |
204 | | - <password>${env.GITHUB_TOKEN}</password> |
| 197 | + </configuration> |
| 198 | + </plugin> |
| 199 | + <plugin> |
| 200 | + <groupId>org.sonatype.plugins</groupId> |
| 201 | + <artifactId>nexus-staging-maven-plugin</artifactId> |
| 202 | + <version>${nexus-staging-maven-plugin.version}</version> |
| 203 | + <extensions>true</extensions> |
| 204 | + <configuration> |
| 205 | + <serverId>ossrh</serverId> |
| 206 | + <nexusUrl>https://oss.sonatype.org/</nexusUrl> |
| 207 | + <autoReleaseAfterClose>true</autoReleaseAfterClose> |
205 | 208 | </configuration> |
206 | 209 | </plugin> |
207 | 210 | <plugin> |
|
219 | 222 | <message>The reactor is not valid</message> |
220 | 223 | <ignoreModuleDependencies>true</ignoreModuleDependencies> |
221 | 224 | </reactorModuleConvergence> |
222 | | - <dependencyConvergence /> |
| 225 | + <dependencyConvergence/> |
223 | 226 | </rules> |
224 | 227 | </configuration> |
225 | 228 | </execution> |
|
268 | 271 | </execution> |
269 | 272 | </executions> |
270 | 273 | </plugin> |
| 274 | + <plugin> |
| 275 | + <artifactId>maven-gpg-plugin</artifactId> |
| 276 | + <version>${maven-gpg-plugin.version}</version> |
| 277 | + <configuration> |
| 278 | + <gpgArguments> |
| 279 | + <arg>--pinentry-mode</arg> |
| 280 | + <arg>loopback</arg> |
| 281 | + </gpgArguments> |
| 282 | + </configuration> |
| 283 | + <executions> |
| 284 | + <execution> |
| 285 | + <id>sign-artifacts</id> |
| 286 | + <goals> |
| 287 | + <goal>sign</goal> |
| 288 | + </goals> |
| 289 | + </execution> |
| 290 | + </executions> |
| 291 | + </plugin> |
271 | 292 | <!-- Docker --> |
272 | 293 | <plugin> |
273 | 294 | <groupId>com.spotify</groupId> |
|
396 | 417 | <dockerfile.skip>false</dockerfile.skip> |
397 | 418 | </properties> |
398 | 419 | </profile> |
| 420 | + <profile> |
| 421 | + <id>deploy2Github</id> |
| 422 | + <distributionManagement> |
| 423 | + <repository> |
| 424 | + <id>github</id> |
| 425 | + <name>GitHub Packages</name> |
| 426 | + <url>https://maven.pkg.github.com/scalecube/scalecube-parent</url> |
| 427 | + </repository> |
| 428 | + </distributionManagement> |
| 429 | + </profile> |
| 430 | + <profile> |
| 431 | + <id>deploy2Maven</id> |
| 432 | + <distributionManagement> |
| 433 | + <repository> |
| 434 | + <id>ossrh</id> |
| 435 | + <name>Central Repository OSSRH</name> |
| 436 | + <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url> |
| 437 | + </repository> |
| 438 | + </distributionManagement> |
| 439 | + <build> |
| 440 | + <plugins> |
| 441 | + <plugin> |
| 442 | + <groupId>org.sonatype.plugins</groupId> |
| 443 | + <artifactId>nexus-staging-maven-plugin</artifactId> |
| 444 | + </plugin> |
| 445 | + <plugin> |
| 446 | + <artifactId>maven-gpg-plugin</artifactId> |
| 447 | + </plugin> |
| 448 | + </plugins> |
| 449 | + </build> |
| 450 | + </profile> |
399 | 451 | </profiles> |
400 | 452 |
|
401 | 453 | </project> |
0 commit comments