🔥 update pom.xml

This commit is contained in:
yadong.zhang 2021-04-28 15:07:10 +08:00
parent d3e8c489db
commit 63df0f8848
15 changed files with 32 additions and 26 deletions

1
.gitignore vendored
View File

@ -63,3 +63,4 @@ build/
/jap-mfa/pom.xml.versionsBackup
/docs/bin/codecov.sh
/jap-ids/pom.xml.versionsBackup
/jap-bom/pom.xml.versionsBackup

View File

@ -6,7 +6,7 @@
</p>
<p align="center">
<a target="_blank" href="https://search.maven.org/search?q=jap">
<img src="https://img.shields.io/badge/Maven%20Central-1.0.1%20alpha.1-blue" ></img>
<img src="https://img.shields.io/badge/Maven%20Central-1.0.1-blue" ></img>
</a>
<a target="_blank" href="https://gitee.com/yadong.zhang/JustAuth/blob/master/LICENSE">
<img src="https://img.shields.io/badge/license-LGPL%203.0-red" ></img>

View File

@ -10,7 +10,7 @@ echo "当前路径:$pwd"
if [ -n "$1" ];then
new_version="$1"
old_version=`cat $pwd/docs/bin/version.txt`
echo "$old_version 替换为新版本 $new_version"
echo "将项目版本 v$old_version 修改为 v$new_version"
else
# 参数错误,退出
echo "ERROR: 请指定新版本!"
@ -22,9 +22,14 @@ if [ ! -n "$old_version" ]; then
exit
fi
# 替换README.md等文件中的版本
echo "替换 $pwd/README.md"
sed -i "s/${old_version}/${new_version}/g" $pwd/README.md
echo "替换 $pwd/README.en.md"
sed -i "s/${old_version}/${new_version}/g" $pwd/README.en.md
echo "替换 $pwd/jap-bom/pom.xml"
sed -i "s/${old_version}/${new_version}/g" $pwd/jap-bom/pom.xml
echo "替换 $pwd/pom.xml"
sed -i "s/${old_version}/${new_version}/g" $pwd/pom.xml
# 保留新版本号
echo "$new_version" > $pwd/docs/bin/version.txt

View File

@ -13,7 +13,7 @@ if [ ! -n "$1" ]; then
fi
# 替换所有模块pom.xml中的版本
mvn versions:set -DnewVersion=$1
#mvn versions:set -DnewVersion=$1
# 替换其它地方的版本
source $(pwd)/docs/bin/repVersion.sh "$1"

View File

@ -1 +1 @@
1.0.1
1.0.2

View File

@ -5,7 +5,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.fujieid</groupId>
<artifactId>jap-bom</artifactId>
<version>${revision}</version>
<version>${jap.version}</version>
<name>${project.artifactId}</name>
<packaging>pom</packaging>
<description>
@ -14,7 +14,7 @@
<properties>
<!-- jap version -->
<revision>1.0.1</revision>
<jap.version>1.0.2-SNAPSHOT</jap.version>
<junit.version>4.13.1</junit.version>
<mockito.version>2.23.4</mockito.version>
@ -37,42 +37,42 @@
<dependency>
<groupId>com.fujieid</groupId>
<artifactId>jap-core</artifactId>
<version>${revision}</version>
<version>${jap.version}</version>
</dependency>
<dependency>
<groupId>com.fujieid</groupId>
<artifactId>jap-simple</artifactId>
<version>${revision}</version>
<version>${jap.version}</version>
</dependency>
<dependency>
<groupId>com.fujieid</groupId>
<artifactId>jap-social</artifactId>
<version>${revision}</version>
<version>${jap.version}</version>
</dependency>
<dependency>
<groupId>com.fujieid</groupId>
<artifactId>jap-oauth2</artifactId>
<version>${revision}</version>
<version>${jap.version}</version>
</dependency>
<dependency>
<groupId>com.fujieid</groupId>
<artifactId>jap-sso</artifactId>
<version>${revision}</version>
<version>${jap.version}</version>
</dependency>
<dependency>
<groupId>com.fujieid</groupId>
<artifactId>jap-oidc</artifactId>
<version>${revision}</version>
<version>${jap.version}</version>
</dependency>
<dependency>
<groupId>com.fujieid</groupId>
<artifactId>jap-mfa</artifactId>
<version>${revision}</version>
<version>${jap.version}</version>
</dependency>
<dependency>
<groupId>com.fujieid</groupId>
<artifactId>jap-ids</artifactId>
<version>${revision}</version>
<version>${jap.version}</version>
</dependency>
<!-- junit start -->

View File

@ -5,7 +5,7 @@
<parent>
<groupId>com.fujieid</groupId>
<artifactId>jap</artifactId>
<version>${revision}</version>
<version>${jap.version}</version>
</parent>
<modelVersion>4.0.0</modelVersion>

View File

@ -5,7 +5,7 @@
<parent>
<groupId>com.fujieid</groupId>
<artifactId>jap</artifactId>
<version>${revision}</version>
<version>${jap.version}</version>
</parent>
<modelVersion>4.0.0</modelVersion>

View File

@ -5,7 +5,7 @@
<parent>
<groupId>com.fujieid</groupId>
<artifactId>jap</artifactId>
<version>${revision}</version>
<version>${jap.version}</version>
</parent>
<modelVersion>4.0.0</modelVersion>

View File

@ -5,7 +5,7 @@
<parent>
<groupId>com.fujieid</groupId>
<artifactId>jap</artifactId>
<version>${revision}</version>
<version>${jap.version}</version>
</parent>
<modelVersion>4.0.0</modelVersion>

View File

@ -5,7 +5,7 @@
<parent>
<groupId>com.fujieid</groupId>
<artifactId>jap</artifactId>
<version>${revision}</version>
<version>${jap.version}</version>
</parent>
<modelVersion>4.0.0</modelVersion>

View File

@ -5,7 +5,7 @@
<parent>
<groupId>com.fujieid</groupId>
<artifactId>jap</artifactId>
<version>${revision}</version>
<version>${jap.version}</version>
</parent>
<modelVersion>4.0.0</modelVersion>

View File

@ -5,7 +5,7 @@
<parent>
<groupId>com.fujieid</groupId>
<artifactId>jap</artifactId>
<version>${revision}</version>
<version>${jap.version}</version>
</parent>
<modelVersion>4.0.0</modelVersion>

View File

@ -5,7 +5,7 @@
<parent>
<groupId>com.fujieid</groupId>
<artifactId>jap</artifactId>
<version>${revision}</version>
<version>${jap.version}</version>
</parent>
<modelVersion>4.0.0</modelVersion>

View File

@ -5,7 +5,7 @@
<groupId>com.fujieid</groupId>
<artifactId>jap</artifactId>
<version>${revision}</version>
<version>${jap.version}</version>
<packaging>pom</packaging>
<name>jap</name>
@ -52,7 +52,7 @@
<properties>
<!-- jap version -->
<revision>1.0.1</revision>
<jap.version>1.0.2-SNAPSHOT</jap.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<java.version>1.8</java.version>
<maven.compiler.source>1.8</maven.compiler.source>
@ -134,7 +134,7 @@
<dependency>
<groupId>com.fujieid</groupId>
<artifactId>jap-bom</artifactId>
<version>${revision}</version>
<version>${jap.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>