|
34 | 34 | <connection>scm:git:https://github.com/java-native/jssc.git</connection> |
35 | 35 | <developerConnection>scm:git:git@github.com:java-native/jssc.git</developerConnection> |
36 | 36 | <url>https://github.com/java-native/jssc</url> |
| 37 | + <tag>HEAD</tag> |
37 | 38 | </scm> |
38 | 39 |
|
39 | 40 | <repositories> |
|
70 | 71 | <plugin.assembly.version>3.1.1</plugin.assembly.version> |
71 | 72 | <plugin.compiler.version>3.8.0</plugin.compiler.version> |
72 | 73 | <plugin.enforcer.version>3.0.0-M3</plugin.enforcer.version> |
| 74 | + <plugin.gpg.version>3.0.1</plugin.gpg.version> |
73 | 75 | <plugin.jar.version>3.1.1</plugin.jar.version> |
74 | 76 | <plugin.javadoc.version>3.1.1</plugin.javadoc.version> |
75 | 77 | <plugin.nar.version>3.6.0</plugin.nar.version> |
| 78 | + <plugin.nexus-staging.version>1.6.7</plugin.nexus-staging.version> |
76 | 79 | <plugin.osmaven.version>1.7.0</plugin.osmaven.version> |
| 80 | + <plugin.release.version>3.0.0-M4</plugin.release.version> |
77 | 81 | <plugin.signature.version>1.1</plugin.signature.version> |
78 | 82 | <plugin.source.version>3.0.1</plugin.source.version> |
79 | 83 | <plugin.surfire.version>3.0.0-M4</plugin.surfire.version> |
|
431 | 435 | <execution> |
432 | 436 | <id>attach-sources</id> |
433 | 437 | <goals> |
434 | | - <goal>jar</goal> |
| 438 | + <goal>jar-no-fork</goal> |
435 | 439 | </goals> |
436 | 440 | </execution> |
437 | 441 | </executions> |
|
558 | 562 | </properties> |
559 | 563 | </profile> |
560 | 564 |
|
| 565 | + <profile> |
| 566 | + <id>maven-central-release</id> |
| 567 | + <build> |
| 568 | + <plugins> |
| 569 | + <plugin> |
| 570 | + <groupId>org.apache.maven.plugins</groupId> |
| 571 | + <artifactId>maven-gpg-plugin</artifactId> |
| 572 | + <version>${plugin.gpg.version}</version> |
| 573 | + <executions> |
| 574 | + <execution> |
| 575 | + <id>sign-artifacts</id> |
| 576 | + <phase>verify</phase> |
| 577 | + <goals> |
| 578 | + <goal>sign</goal> |
| 579 | + </goals> |
| 580 | + </execution> |
| 581 | + </executions> |
| 582 | + <configuration> |
| 583 | + <keyname>java-native</keyname> |
| 584 | + <passphraseServerId>gpg.passphrase</passphraseServerId> |
| 585 | + <gpgArguments> |
| 586 | + <arg>--pinentry-mode</arg> |
| 587 | + <arg>loopback</arg> |
| 588 | + </gpgArguments> |
| 589 | + </configuration> |
| 590 | + </plugin> |
| 591 | + <plugin> |
| 592 | + <groupId>org.apache.maven.plugins</groupId> |
| 593 | + <artifactId>maven-release-plugin</artifactId> |
| 594 | + <version>${plugin.release.version}</version> |
| 595 | + <configuration> |
| 596 | + <tagNameFormat>v@{project.version}</tagNameFormat> |
| 597 | + <pushChanges>false</pushChanges> |
| 598 | + <localCheckout>true</localCheckout> |
| 599 | + <goals>deploy</goals> |
| 600 | + </configuration> |
| 601 | + </plugin> |
| 602 | + <plugin> |
| 603 | + <groupId>org.sonatype.plugins</groupId> |
| 604 | + <artifactId>nexus-staging-maven-plugin</artifactId> |
| 605 | + <version>${plugin.nexus-staging.version}</version> |
| 606 | + <extensions>true</extensions> |
| 607 | + <configuration> |
| 608 | + <serverId>ossrh</serverId> |
| 609 | + <nexusUrl>https://oss.sonatype.org/</nexusUrl> |
| 610 | + </configuration> |
| 611 | + </plugin> |
| 612 | + </plugins> |
| 613 | + </build> |
| 614 | + </profile> |
| 615 | + |
561 | 616 | </profiles> |
562 | 617 | </project> |
0 commit comments