Skip to content

Commit

Permalink
3.0.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
fengwenyi committed Aug 4, 2024
1 parent 76aa02a commit 7e95924
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 27 deletions.
3 changes: 2 additions & 1 deletion build.sh
Original file line number Diff line number Diff line change
@@ -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
29 changes: 3 additions & 26 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
<!-- 工程源码编码 -->
Expand Down Expand Up @@ -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>
Expand All @@ -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>
Expand All @@ -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>
Expand Down

0 comments on commit 7e95924

Please sign in to comment.