chore: 更新版本号并完善项目元数据配置

- 将版本从 1.1.0-SNAPSHOT 更新为 1.1.0-RC1
- 为 plusone-commons、plusone-dependencies 和父 pom 添加项目名称
- 配置项目 URL、许可证、开发者和 SCM 信息
- 在父 pom 中添加 release profile 支持 GPG 签名和中央仓库发布
This commit is contained in:
2026-05-28 20:55:38 +08:00
parent b0685ae32f
commit 3462e5340f
3 changed files with 126 additions and 5 deletions

View File

@@ -7,15 +7,40 @@
<parent> <parent>
<groupId>xyz.zhouxy.plusone</groupId> <groupId>xyz.zhouxy.plusone</groupId>
<artifactId>plusone-parent</artifactId> <artifactId>plusone-parent</artifactId>
<version>1.1.0-SNAPSHOT</version> <version>1.1.0-RC1</version>
</parent> </parent>
<artifactId>plusone-commons</artifactId> <artifactId>plusone-commons</artifactId>
<name>Plusone Commons</name>
<url>https://gitea.zhouxy.xyz/plusone/plusone-commons</url>
<description> <description>
Plusone Commons 是一个 Java 工具类库,提供了一系列实用的类和方法,用于简化开发。结合 guava 使用。 Plusone Commons 是一个 Java 工具类库,提供了一系列实用的类和方法,用于简化开发。结合 guava 使用。
</description> </description>
<licenses>
<license>
<name>Apache License, Version 2.0</name>
<url>https://www.apache.org/licenses/LICENSE-2.0</url>
<distribution>repo</distribution>
</license>
</licenses>
<developers>
<developer>
<name>Zhou Xingyi (周兴毅)</name>
<url>https://gitea.zhouxy.xyz/plusone</url>
</developer>
</developers>
<scm>
<connection>scm:git:https://gitea.zhouxy.xyz/plusone/plusone-commons.git</connection>
<developerConnection>scm:git:ssh://gitea.zhouxy.xyz/plusone/plusone-commons.git</developerConnection>
<url>https://gitea.zhouxy.xyz/plusone/plusone-commons</url>
</scm>
<dependencyManagement> <dependencyManagement>
<dependencies> <dependencies>
<dependency> <dependency>

View File

@@ -7,16 +7,42 @@
<parent> <parent>
<groupId>xyz.zhouxy.plusone</groupId> <groupId>xyz.zhouxy.plusone</groupId>
<artifactId>plusone-parent</artifactId> <artifactId>plusone-parent</artifactId>
<version>1.1.0-SNAPSHOT</version> <version>1.1.0-RC1</version>
<relativePath>../pom.xml</relativePath>
</parent> </parent>
<artifactId>plusone-dependencies</artifactId> <artifactId>plusone-dependencies</artifactId>
<name>plusone-dependencies</name>
<url>https://gitea.zhouxy.xyz/plusone/plusone-commons</url>
<packaging>pom</packaging> <packaging>pom</packaging>
<description> <description>
plusone 相关项目依赖管理 plusone 相关项目依赖管理
</description> </description>
<licenses>
<license>
<name>Apache License, Version 2.0</name>
<url>https://www.apache.org/licenses/LICENSE-2.0</url>
<distribution>repo</distribution>
</license>
</licenses>
<developers>
<developer>
<name>Zhou Xingyi (周兴毅)</name>
<url>https://gitea.zhouxy.xyz/plusone</url>
</developer>
</developers>
<scm>
<connection>scm:git:https://gitea.zhouxy.xyz/plusone/plusone-commons.git</connection>
<developerConnection>scm:git:ssh://gitea.zhouxy.xyz/plusone/plusone-commons.git</developerConnection>
<url>https://gitea.zhouxy.xyz/plusone/plusone-commons</url>
</scm>
<dependencyManagement> <dependencyManagement>
<dependencies> <dependencies>
<dependency> <dependency>

76
pom.xml
View File

@@ -1,14 +1,42 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" <project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<name>plusone-parent</name>
<groupId>xyz.zhouxy.plusone</groupId> <groupId>xyz.zhouxy.plusone</groupId>
<artifactId>plusone-parent</artifactId> <artifactId>plusone-parent</artifactId>
<version>1.1.0-SNAPSHOT</version> <version>1.1.0-RC1</version>
<packaging>pom</packaging> <packaging>pom</packaging>
<description>
一个常用的工具集,结合 guava 使用。
</description>
<url>https://gitea.zhouxy.xyz/plusone/plusone-commons</url>
<licenses>
<license>
<name>Apache License, Version 2.0</name>
<url>https://www.apache.org/licenses/LICENSE-2.0</url>
<distribution>repo</distribution>
</license>
</licenses>
<developers>
<developer>
<name>Zhou Xingyi (周兴毅)</name>
<url>https://gitea.zhouxy.xyz/plusone</url>
</developer>
</developers>
<scm>
<connection>scm:git:https://gitea.zhouxy.xyz/plusone/plusone-commons.git</connection>
<developerConnection>scm:git:ssh://gitea.zhouxy.xyz/plusone/plusone-commons.git</developerConnection>
<url>https://gitea.zhouxy.xyz/plusone/plusone-commons</url>
</scm>
<properties> <properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<java.version>1.8</java.version> <java.version>1.8</java.version>
@@ -131,4 +159,46 @@
</plugins> </plugins>
</pluginManagement> </pluginManagement>
</build> </build>
<profiles>
<profile>
<id>release</id>
<build>
<plugins>
<!-- GPG -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>3.2.5</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.sonatype.central</groupId>
<artifactId>central-publishing-maven-plugin</artifactId>
<version>0.5.0</version>
<extensions>true</extensions>
<configuration>
<publishingServerId>central</publishingServerId>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<configuration>
<failOnError>false</failOnError>
<additionalparam>-Xdoclint:none</additionalparam>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project> </project>