|
7 | 7 | <groupId>cn.ucloud</groupId> |
8 | 8 | <artifactId>ucloud-sdk-java</artifactId> |
9 | 9 | <packaging>pom</packaging> |
10 | | - <version>1.2.47-release</version> |
| 10 | + <version>1.2.48-release</version> |
11 | 11 | <modules> |
12 | 12 | <module>ucloud-sdk-java-common</module> |
13 | 13 | <module>ucloud-sdk-java-cloudwatch</module> |
|
77 | 77 |
|
78 | 78 | <distributionManagement> |
79 | 79 | <snapshotRepository> |
80 | | - <id>sonatype-nexus-ucloud</id> |
81 | | - <url>https://oss.sonatype.org/content/repositories/snapshots/</url> |
| 80 | + <id>central</id> |
| 81 | + <url>https://central.sonatype.com/repository/maven-snapshots/</url> |
82 | 82 | </snapshotRepository> |
83 | 83 | <repository> |
84 | | - <id>sonatype-nexus-ucloud</id> |
85 | | - <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url> |
| 84 | + <id>central</id> |
| 85 | + <url>https://central.sonatype.com/repository/maven-releases/</url> |
86 | 86 | </repository> |
87 | 87 | </distributionManagement> |
88 | 88 |
|
|
100 | 100 | <codec.version>1.9</codec.version> |
101 | 101 | <slf4j.version>1.7.25</slf4j.version> |
102 | 102 | <jsonassert.version>1.5.0</jsonassert.version> |
| 103 | + <central-publishing-maven-plugin.version>0.8.0</central-publishing-maven-plugin.version> |
103 | 104 | <sonar.organization>ucloud</sonar.organization> |
104 | 105 | <sonar.host.url>https://sonarcloud.io</sonar.host.url> |
105 | 106 | </properties> |
106 | 107 |
|
107 | 108 | <dependencyManagement> |
108 | 109 | <dependencies> |
| 110 | + <dependency> |
| 111 | + <groupId>org.sonatype.central</groupId> |
| 112 | + <artifactId>central-publishing-maven-plugin</artifactId> |
| 113 | + <version>${central-publishing-maven-plugin.version}</version> |
| 114 | + </dependency> |
109 | 115 | <dependency> |
110 | 116 | <groupId>junit</groupId> |
111 | 117 | <artifactId>junit</artifactId> |
|
193 | 199 |
|
194 | 200 | <plugins> |
195 | 201 |
|
| 202 | + <plugin> |
| 203 | + <groupId>org.sonatype.central</groupId> |
| 204 | + <artifactId>central-publishing-maven-plugin</artifactId> |
| 205 | + <version>0.8.0</version> |
| 206 | + <extensions>true</extensions> |
| 207 | + <configuration> |
| 208 | + <publishingServerId>central</publishingServerId> |
| 209 | + <autoPublish>true</autoPublish> |
| 210 | + <waitUntil>published</waitUntil> |
| 211 | + <deploymentName>ucloud-sdk-java</deploymentName> |
| 212 | + </configuration> |
| 213 | + </plugin> |
196 | 214 | <!-- 编译插件--> |
197 | 215 | <plugin> |
198 | 216 | <groupId>org.apache.maven.plugins</groupId> |
|
273 | 291 | <version>1.6</version> |
274 | 292 | <executions> |
275 | 293 | <execution> |
| 294 | + <id>sign-artifacts</id> |
276 | 295 | <phase>verify</phase> |
277 | 296 | <goals> |
278 | 297 | <goal>sign</goal> |
279 | 298 | </goals> |
| 299 | + <configuration> |
| 300 | + <keyname>339E925AC495D2A80D9C7E27E04CE029BE42D2B5</keyname> <!-- 可选 --> |
| 301 | + <gpgArguments> |
| 302 | + <arg>--pinentry-mode</arg> |
| 303 | + <arg>loopback</arg> <!-- 禁止交互式弹窗 --> |
| 304 | + </gpgArguments> |
| 305 | + </configuration> |
280 | 306 | </execution> |
281 | 307 | </executions> |
282 | 308 | </plugin> |
|
0 commit comments