|
103 | 103 | <version.maven-gpg-plugin>3.2.7</version.maven-gpg-plugin> |
104 | 104 | <version.maven-javadoc-plugin>3.11.2</version.maven-javadoc-plugin> |
105 | 105 | <version.maven-source-plugin>3.3.1</version.maven-source-plugin> |
106 | | - <version.org.sonatype.plugins.nexus-staging-maven-plugin>1.7.0</version.org.sonatype.plugins.nexus-staging-maven-plugin> |
| 106 | + <version.org.sonatype.central-publishing-maven-plugin>0.7.0</version.org.sonatype.central-publishing-maven-plugin> |
107 | 107 |
|
108 | 108 | </properties> |
109 | 109 |
|
|
113 | 113 | <module>maven-plugin-tests</module> |
114 | 114 | </modules> |
115 | 115 |
|
116 | | - <distributionManagement> |
117 | | - <snapshotRepository> |
118 | | - <id>ossrh</id> |
119 | | - <url>https://oss.sonatype.org/content/repositories/snapshots</url> |
120 | | - </snapshotRepository> |
121 | | - </distributionManagement> |
122 | 116 |
|
123 | 117 | <profiles> |
124 | 118 | <profile> |
125 | 119 | <id>release</id> |
126 | 120 | <build> |
127 | 121 | <plugins> |
128 | 122 | <plugin> |
129 | | - <groupId>org.sonatype.plugins</groupId> |
130 | | - <artifactId>nexus-staging-maven-plugin</artifactId> |
131 | | - <version>${version.org.sonatype.plugins.nexus-staging-maven-plugin}</version> |
| 123 | + <groupId>org.apache.maven.plugins</groupId> |
| 124 | + <artifactId>maven-source-plugin</artifactId> |
| 125 | + <version>3.3.1</version> |
| 126 | + <executions> |
| 127 | + <execution> |
| 128 | + <id>attach-sources</id> |
| 129 | + <goals> |
| 130 | + <goal>jar</goal> |
| 131 | + </goals> |
| 132 | + </execution> |
| 133 | + </executions> |
| 134 | + </plugin> |
| 135 | + <plugin> |
| 136 | + <groupId>org.apache.maven.plugins</groupId> |
| 137 | + <artifactId>maven-javadoc-plugin</artifactId> |
| 138 | + <version>3.11.2</version> |
| 139 | + <executions> |
| 140 | + <execution> |
| 141 | + <id>attach-javadocs</id> |
| 142 | + <goals> |
| 143 | + <goal>jar</goal> |
| 144 | + </goals> |
| 145 | + <configuration> |
| 146 | + <source>11</source> |
| 147 | + <doclint>none</doclint> |
| 148 | + </configuration> |
| 149 | + </execution> |
| 150 | + </executions> |
| 151 | + </plugin> |
| 152 | + <plugin> |
| 153 | + <groupId>org.sonatype.central</groupId> |
| 154 | + <artifactId>central-publishing-maven-plugin</artifactId> |
| 155 | + <version>${version.org.sonatype.central-publishing-maven-plugin}</version> |
132 | 156 | <extensions>true</extensions> |
133 | 157 | <configuration> |
134 | | - <serverId>ossrh</serverId> |
135 | | - <nexusUrl>https://oss.sonatype.org/</nexusUrl> |
| 158 | + <publishingServerId>central</publishingServerId> |
| 159 | + <waitUntil>published</waitUntil> |
| 160 | + <autoPublish>true</autoPublish> |
136 | 161 | <autoReleaseAfterClose>true</autoReleaseAfterClose> |
137 | 162 | </configuration> |
138 | 163 | </plugin> |
|
0 commit comments