Skip to content

Commit

Permalink
--taskid=ID20230908
Browse files Browse the repository at this point in the history
引用的verion版本声明,定义的变量不规范,需要规范化
  • Loading branch information
xinluke committed Sep 8, 2023
1 parent f848c35 commit f84fd9d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,10 @@ private void insertProperty(String artifactId, String version) {
String key = artifactId + ".version";
Properties prop = model.getProperties();
// 如果当前key存在会产生覆盖效果
prop.setProperty(key, version);
//如果完全一致,则不操作,避免git调整记录
if (!version.equals(prop.getProperty(key))) {
prop.setProperty(key, version);
}
}

private String getNewVersion(String artifactId) {
Expand Down
8 changes: 8 additions & 0 deletions src/test/resources/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
<javaparser-symbol-solver-core.version>3.6.5</javaparser-symbol-solver-core.version>
<!-- 无用的版本号,期望删除掉此纪录 -->
<test-useless.version>3.6.5</test-useless.version>
<!--已存在记录,期望不发生变动-->
<swagger-annotations.version>1.5.14</swagger-annotations.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<java.version>1.8</java.version>
Expand Down Expand Up @@ -81,6 +83,12 @@
<artifactId>stat-services-api</artifactId>
<version>${stat-service-api.version}</version>
</dependency>
<dependency>
<groupId>io.swagger</groupId>
<artifactId>swagger-annotations</artifactId>
<version>1.5.14</version>
<scope>provided</scope>
</dependency>
</dependencies>
<dependencyManagement>
<dependencies>
Expand Down

0 comments on commit f84fd9d

Please sign in to comment.