|
108 | 108 | <maven-deploy-plugin.version>2.8.2</maven-deploy-plugin.version> |
109 | 109 | <maven-enforcer-plugin.version>3.0.0</maven-enforcer-plugin.version> |
110 | 110 |
|
| 111 | + <jreleaser-maven-plugin.version>1.23.0</jreleaser-maven-plugin.version> |
111 | 112 | <jacoco-maven-plugin.version>0.8.8</jacoco-maven-plugin.version> |
112 | 113 |
|
113 | 114 | <!-- empty argLine property, the value is set up by Jacoco during unit tests execution --> |
|
220 | 221 | <artifactId>maven-deploy-plugin</artifactId> |
221 | 222 | <version>${maven-deploy-plugin.version}</version> |
222 | 223 | </plugin> |
| 224 | + <plugin> |
| 225 | + <groupId>org.jreleaser</groupId> |
| 226 | + <artifactId>jreleaser-maven-plugin</artifactId> |
| 227 | + <version>${jreleaser-maven-plugin.version}</version> |
| 228 | + <configuration> |
| 229 | + <jreleaser> |
| 230 | + <signing> |
| 231 | + <active>ALWAYS</active> |
| 232 | + <armored>true</armored> |
| 233 | + </signing> |
| 234 | + <deploy> |
| 235 | + <maven> |
| 236 | + <mavenCentral> |
| 237 | + <sonatype> |
| 238 | + <active>RELEASE</active> |
| 239 | + <url>https://central.sonatype.com/api/v1/publisher</url> |
| 240 | + <stagingRepositories>target/staging-deploy</stagingRepositories> |
| 241 | + </sonatype> |
| 242 | + </mavenCentral> |
| 243 | + <nexus2> |
| 244 | + <maven-central> |
| 245 | + <active>SNAPSHOT</active> |
| 246 | + <url>https://ossrh-staging-api.central.sonatype.com/service/local</url> |
| 247 | + <snapshotUrl>https://central.sonatype.com/repository/maven-snapshots</snapshotUrl> |
| 248 | + <applyMavenCentralRules>true</applyMavenCentralRules> |
| 249 | + <snapshotSupported>true</snapshotSupported> |
| 250 | + <stagingRepositories>target/staging-deploy</stagingRepositories> |
| 251 | + </maven-central> |
| 252 | + </nexus2> |
| 253 | + </maven> |
| 254 | + </deploy> |
| 255 | + </jreleaser> |
| 256 | + </configuration> |
| 257 | + </plugin> |
223 | 258 | </plugins> |
224 | 259 | </pluginManagement> |
225 | 260 | <plugins> |
|
589 | 624 | </execution> |
590 | 625 | </executions> |
591 | 626 | </plugin> |
| 627 | + <plugin> |
| 628 | + <groupId>org.jreleaser</groupId> |
| 629 | + <artifactId>jreleaser-maven-plugin</artifactId> |
| 630 | + </plugin> |
592 | 631 | </plugins> |
593 | 632 | </build> |
594 | 633 |
|
|
716 | 755 | </build> |
717 | 756 | </profile> |
718 | 757 |
|
| 758 | + <profile> |
| 759 | + <id>publication</id> |
| 760 | + <properties> |
| 761 | + <altDeploymentRepository>local::default::file:./target/staging-deploy</altDeploymentRepository> |
| 762 | + </properties> |
| 763 | + <build> |
| 764 | + <defaultGoal>deploy</defaultGoal> |
| 765 | + <plugins> |
| 766 | + <plugin> |
| 767 | + <groupId>org.apache.maven.plugins</groupId> |
| 768 | + <artifactId>maven-javadoc-plugin</artifactId> |
| 769 | + <version>${maven-javadoc-plugin.version}</version> |
| 770 | + <executions> |
| 771 | + <execution> |
| 772 | + <id>attach-javadocs</id> |
| 773 | + <goals> |
| 774 | + <goal>jar</goal> |
| 775 | + </goals> |
| 776 | + <configuration> |
| 777 | + <attach>true</attach> |
| 778 | + </configuration> |
| 779 | + </execution> |
| 780 | + </executions> |
| 781 | + </plugin> |
| 782 | + <plugin> |
| 783 | + <groupId>org.apache.maven.plugins</groupId> |
| 784 | + <artifactId>maven-source-plugin</artifactId> |
| 785 | + <version>${maven-source-plugin.version}</version> |
| 786 | + <executions> |
| 787 | + <execution> |
| 788 | + <id>attach-sources</id> |
| 789 | + <goals> |
| 790 | + <goal>jar</goal> |
| 791 | + </goals> |
| 792 | + <configuration> |
| 793 | + <attach>true</attach> |
| 794 | + </configuration> |
| 795 | + </execution> |
| 796 | + </executions> |
| 797 | + </plugin> |
| 798 | + </plugins> |
| 799 | + </build> |
| 800 | + </profile> |
| 801 | + |
719 | 802 | </profiles> |
720 | 803 |
|
721 | 804 | </project> |
0 commit comments