Skip to content

Commit e695c30

Browse files
feat: the release address has been switched to the new central warehouse (#85)
1 parent da79473 commit e695c30

17 files changed

Lines changed: 183 additions & 51 deletions

File tree

pom.xml

Lines changed: 30 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@
9696
<maven.ignore.testfailure>false</maven.ignore.testfailure>
9797
<maven.surefire.version>2.22.0</maven.surefire.version>
9898
<maven.javadoc.version>3.0.1</maven.javadoc.version>
99+
<central-publishing-maven-plugin.version>0.7.0</central-publishing-maven-plugin.version>
99100
<exec.maven.version>3.1.0</exec.maven.version>
100101
<file.encoding>UTF-8</file.encoding>
101102
</properties>
@@ -312,9 +313,14 @@
312313
<build>
313314
<plugins>
314315
<plugin>
315-
<groupId>org.apache.maven.plugins</groupId>
316-
<artifactId>maven-deploy-plugin</artifactId>
317-
<version>${maven.deploy.version}</version>
316+
<groupId>org.sonatype.central</groupId>
317+
<artifactId>central-publishing-maven-plugin</artifactId>
318+
<version>${central-publishing-maven-plugin.version}</version>
319+
<extensions>true</extensions>
320+
<configuration>
321+
<publishingServerId>central-repo</publishingServerId>
322+
<autoPublish>true</autoPublish>
323+
</configuration>
318324
</plugin>
319325
<plugin>
320326
<groupId>org.apache.maven.plugins</groupId>
@@ -374,14 +380,27 @@
374380
</profile>
375381
</profiles>
376382

377-
<distributionManagement>
378-
<snapshotRepository>
379-
<id>ossrh</id>
380-
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
381-
</snapshotRepository>
383+
<repositories>
384+
<repository>
385+
<id>maven-central</id>
386+
<url>https://repo.maven.apache.org/maven2/</url>
387+
<snapshots>
388+
<enabled>false</enabled>
389+
</snapshots>
390+
<releases>
391+
<enabled>true</enabled>
392+
</releases>
393+
</repository>
382394
<repository>
383-
<id>ossrh</id>
384-
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
395+
<name>Central Portal Snapshots</name>
396+
<id>central-portal-snapshots</id>
397+
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
398+
<releases>
399+
<enabled>false</enabled>
400+
</releases>
401+
<snapshots>
402+
<enabled>true</enabled>
403+
</snapshots>
385404
</repository>
386-
</distributionManagement>
405+
</repositories>
387406
</project>

trpc-code-generator/pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212

1313
<artifactId>trpc-code-generator</artifactId>
1414
<packaging>jar</packaging>
15+
<name>trpc-code-generator</name>
1516

1617
<properties>
1718
<maven.compiler.source>8</maven.compiler.source>

trpc-demo/pom.xml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@
1212

1313
<artifactId>trpc-demo</artifactId>
1414
<packaging>pom</packaging>
15-
<description>Trpc Parent Project ${project.version}</description>
15+
<description>trpc-demo</description>
1616
<name>trpc</name>
1717

1818
<properties>
19-
<skip_maven_deploy>true</skip_maven_deploy>
19+
<maven.deploy.skip>true</maven.deploy.skip>
2020
<trpc-maven-plugin.version>1.0.0</trpc-maven-plugin.version>
2121
</properties>
2222
<modules>
@@ -36,9 +36,6 @@
3636
<plugin>
3737
<groupId>org.apache.maven.plugins</groupId>
3838
<artifactId>maven-javadoc-plugin</artifactId>
39-
<configuration>
40-
<skip>true</skip>
41-
</configuration>
4239
</plugin>
4340
<plugin>
4441
<groupId>org.jacoco</groupId>

trpc-demo/trpc-java-demo/pom.xml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,6 @@
4545
<groupId>org.apache.maven.plugins</groupId>
4646
<artifactId>maven-javadoc-plugin</artifactId>
4747
<version>3.0.1</version>
48-
<configuration>
49-
<skip>true</skip>
50-
</configuration>
5148
</plugin>
5249
<plugin>
5350
<groupId>org.jacoco</groupId>

trpc-demo/trpc-spring-demo/trpc-spring-client-demo/pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
</parent>
1010
<modelVersion>4.0.0</modelVersion>
1111

12+
<name>trpc-spring-client-demo</name>
1213
<artifactId>trpc-spring-client-demo</artifactId>
1314

1415
<dependencies>

trpc-demo/trpc-spring-demo/trpc-spring-server-demo/pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
<modelVersion>4.0.0</modelVersion>
1111

1212
<artifactId>trpc-spring-server-demo</artifactId>
13+
<name>trpc-spring-server-demo</name>
1314

1415
<dependencies>
1516
<dependency>

trpc-dependencies/trpc-bom/pom.xml

Lines changed: 58 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,25 +8,64 @@
88
<artifactId>trpc-bom</artifactId>
99
<version>1.4.0-SNAPSHOT</version>
1010
<packaging>pom</packaging>
11+
<description>trpc-bom</description>
12+
<name>trpc</name>
13+
<url>https://github.com/trpc-group/trpc-java</url>
14+
15+
<licenses>
16+
<license>
17+
<name>Apache License Version 2.0</name>
18+
<url>https://opensource.org/license/apache-2-0</url>
19+
<distribution>repo</distribution>
20+
</license>
21+
</licenses>
22+
23+
<scm>
24+
<url>https://github.com/trpc-group/trpc-java</url>
25+
<connection>
26+
scm:git:git@github.com:trpc-group/trpc-java.git
27+
</connection>
28+
<developerConnection>
29+
scm:git:ssh://git@github.com/trpc-group/trpc-java.git
30+
</developerConnection>
31+
<tag>HEAD</tag>
32+
</scm>
33+
34+
<developers>
35+
<developer>
36+
<name>Base Zhang</name>
37+
<email>basezhang@vip.qq.com</email>
38+
</developer>
39+
<developer>
40+
<name>Shore Wang</name>
41+
<email>wangxiao1208@foxmail.com</email>
42+
</developer>
43+
<developer>
44+
<name>Thirteen Wang</name>
45+
<email>779754345@qq.com</email>
46+
</developer>
47+
<developer>
48+
<name>Shiyou Wu</name>
49+
<email>258154927@qq.com</email>
50+
</developer>
51+
<developer>
52+
<name>Kelgon Wu</name>
53+
<email>kelgonwu@126.com</email>
54+
</developer>
55+
<developer>
56+
<name>Layne Xiong</name>
57+
<email>wardseptember@163.com</email>
58+
</developer>
59+
</developers>
1160

1261
<properties>
62+
<central-publishing-maven-plugin.version>0.7.0</central-publishing-maven-plugin.version>
1363
<maven.gpg.version>3.1.0</maven.gpg.version>
1464
<maven.deploy.version>3.0.0</maven.deploy.version>
1565
<maven.source.version>3.0.1</maven.source.version>
1666
<maven.javadoc.version>3.0.1</maven.javadoc.version>
1767
</properties>
1868

19-
<distributionManagement>
20-
<snapshotRepository>
21-
<id>ossrh</id>
22-
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
23-
</snapshotRepository>
24-
<repository>
25-
<id>ossrh</id>
26-
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
27-
</repository>
28-
</distributionManagement>
29-
3069
<dependencyManagement>
3170
<dependencies>
3271
<!--trpc module -->
@@ -194,9 +233,14 @@
194233
<build>
195234
<plugins>
196235
<plugin>
197-
<groupId>org.apache.maven.plugins</groupId>
198-
<artifactId>maven-deploy-plugin</artifactId>
199-
<version>${maven.deploy.version}</version>
236+
<groupId>org.sonatype.central</groupId>
237+
<artifactId>central-publishing-maven-plugin</artifactId>
238+
<version>${central-publishing-maven-plugin.version}</version>
239+
<extensions>true</extensions>
240+
<configuration>
241+
<publishingServerId>central-repo</publishingServerId>
242+
<autoPublish>true</autoPublish>
243+
</configuration>
200244
</plugin>
201245
<plugin>
202246
<groupId>org.apache.maven.plugins</groupId>

trpc-dependencies/trpc-dependencies-bom/pom.xml

Lines changed: 57 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,24 +8,63 @@
88
<artifactId>trpc-dependencies-bom</artifactId>
99
<version>1.4.0-SNAPSHOT</version>
1010
<packaging>pom</packaging>
11+
<description>trpc-dependencies-bom</description>
12+
<name>trpc</name>
13+
<url>https://github.com/trpc-group/trpc-java</url>
1114

12-
<distributionManagement>
13-
<snapshotRepository>
14-
<id>ossrh</id>
15-
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
16-
</snapshotRepository>
17-
<repository>
18-
<id>ossrh</id>
19-
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
20-
</repository>
21-
</distributionManagement>
15+
<licenses>
16+
<license>
17+
<name>Apache License Version 2.0</name>
18+
<url>https://opensource.org/license/apache-2-0</url>
19+
<distribution>repo</distribution>
20+
</license>
21+
</licenses>
22+
23+
<scm>
24+
<url>https://github.com/trpc-group/trpc-java</url>
25+
<connection>
26+
scm:git:git@github.com:trpc-group/trpc-java.git
27+
</connection>
28+
<developerConnection>
29+
scm:git:ssh://git@github.com/trpc-group/trpc-java.git
30+
</developerConnection>
31+
<tag>HEAD</tag>
32+
</scm>
33+
34+
<developers>
35+
<developer>
36+
<name>Base Zhang</name>
37+
<email>basezhang@vip.qq.com</email>
38+
</developer>
39+
<developer>
40+
<name>Shore Wang</name>
41+
<email>wangxiao1208@foxmail.com</email>
42+
</developer>
43+
<developer>
44+
<name>Thirteen Wang</name>
45+
<email>779754345@qq.com</email>
46+
</developer>
47+
<developer>
48+
<name>Shiyou Wu</name>
49+
<email>258154927@qq.com</email>
50+
</developer>
51+
<developer>
52+
<name>Kelgon Wu</name>
53+
<email>kelgonwu@126.com</email>
54+
</developer>
55+
<developer>
56+
<name>Layne Xiong</name>
57+
<email>wardseptember@163.com</email>
58+
</developer>
59+
</developers>
2260

2361
<properties>
2462
<auto-service.version>1.1.0</auto-service.version>
2563
<assertj-core.version>3.12.1</assertj-core.version>
2664
<apollo.version>2.1.0</apollo.version>
2765
<byte.buddy.version>1.14.9</byte.buddy.version>
2866
<caffeine.version>2.9.3</caffeine.version>
67+
<central-publishing-maven-plugin.version>0.7.0</central-publishing-maven-plugin.version>
2968
<commons.codec.version>1.15</commons.codec.version>
3069
<commons.collections4.version>4.4</commons.collections4.version>
3170
<commons.configurations.version>2.10.1</commons.configurations.version>
@@ -931,9 +970,14 @@
931970
<build>
932971
<plugins>
933972
<plugin>
934-
<groupId>org.apache.maven.plugins</groupId>
935-
<artifactId>maven-deploy-plugin</artifactId>
936-
<version>${maven.deploy.version}</version>
973+
<groupId>org.sonatype.central</groupId>
974+
<artifactId>central-publishing-maven-plugin</artifactId>
975+
<version>${central-publishing-maven-plugin.version}</version>
976+
<extensions>true</extensions>
977+
<configuration>
978+
<publishingServerId>central-repo</publishingServerId>
979+
<autoPublish>true</autoPublish>
980+
</configuration>
937981
</plugin>
938982
<plugin>
939983
<groupId>org.apache.maven.plugins</groupId>

trpc-maven-plugin/pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
<version>1.4.0-SNAPSHOT</version>
1111
</parent>
1212

13+
<name>trpc-maven-plugin</name>
1314
<artifactId>trpc-maven-plugin</artifactId>
1415
<packaging>maven-plugin</packaging>
1516

trpc-opentelemetry/pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
</parent>
1111

1212
<artifactId>trpc-opentelemetry</artifactId>
13+
<name>trpc-opentelemetry</name>
1314

1415
<dependencies>
1516
<dependency>

0 commit comments

Comments
 (0)