From 7e95924778e35f61f2caf7e1e3d0a6630dedf0e2 Mon Sep 17 00:00:00 2001 From: ErwinFeng <xfsy_2015@163.com> Date: Sun, 4 Aug 2024 19:28:27 +0800 Subject: [PATCH] 3.0.0 release --- build.sh | 3 ++- pom.xml | 29 +++-------------------------- 2 files changed, 5 insertions(+), 27 deletions(-) diff --git a/build.sh b/build.sh index d3b7258..9365d73 100644 --- a/build.sh +++ b/build.sh @@ -1,6 +1,7 @@ #!/bin/bash version=`awk '/<version>[^<]+<\/version>/{gsub(/<version>|<\/version>/,"",$1);print $1;exit;}' pom.xml` echo $version -mvn clean deploy -P sonatype-oss-release -DskipTests +# mvn clean deploy -P sonatype-oss-release -DskipTests +mvn clean deploy -P release git tag -a $version -m "v$version" git push origin $version \ No newline at end of file diff --git a/pom.xml b/pom.xml index f17e847..19f1a65 100644 --- a/pom.xml +++ b/pom.xml @@ -6,10 +6,11 @@ <groupId>com.fengwenyi</groupId> <artifactId>JavaLib</artifactId> - <version>3.0.0-SNAPSHOT</version> + <version>3.0.0</version> <packaging>jar</packaging> <name>JavaLib</name> <description>JAVA开发常用工具集</description> + <url>https://github.com/fengwenyi/JavaLib</url> <properties> <!-- 工程源码编码 --> @@ -140,19 +141,8 @@ </developer> </developers> - <!--<parent> - <groupId>org.sonatype.oss</groupId> - <artifactId>oss-parent</artifactId> - <version>7</version> - </parent>--> - <build> <plugins> - <!--<plugin>--> - <!--<groupId>org.springframework.boot</groupId>--> - <!--<artifactId>spring-boot-maven-plugin</artifactId>--> - <!--</plugin>--> - <!-- Springboot的项目打包给其他项目用的话不能使用自带的打包插件,使用下面的 --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> @@ -162,18 +152,13 @@ <plugin> <groupId>org.sonatype.plugins</groupId> <artifactId>nexus-staging-maven-plugin</artifactId> - <version>1.6.7</version> + <version>1.7.0</version> <extensions>true</extensions> <configuration> <serverId>oss</serverId> <nexusUrl>https://oss.sonatype.org/</nexusUrl> <autoReleaseAfterClose>true</autoReleaseAfterClose> </configuration> - <!--<configuration> - <serverId>ossrh</serverId> - <nexusUrl>https://s01.oss.sonatype.org/</nexusUrl> - <autoReleaseAfterClose>true</autoReleaseAfterClose> - </configuration>--> </plugin> </plugins> </build> @@ -187,14 +172,6 @@ <id>oss</id> <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url> </repository> - <!--<snapshotRepository> - <id>ossrh</id> - <url>https://s01.oss.sonatype.org/content/repositories/snapshots</url> - </snapshotRepository> - <repository> - <id>ossrh</id> - <url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url> - </repository>--> </distributionManagement> <profiles>