Skip to content

Commit

Permalink
✨ 添加统一修改项目版本的脚本;整理本项目的版本号;统一管理 springframwork 版本号
Browse files Browse the repository at this point in the history
  • Loading branch information
dunwu committed Jan 19, 2018
1 parent 1c399bf commit 22a5711
Show file tree
Hide file tree
Showing 27 changed files with 41 additions and 117 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ logs
*.class
*.jar
*.war
*.versionsBackup


################ JAVASCRIPT ################
Expand Down
2 changes: 1 addition & 1 deletion codes/core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<parent>
<groupId>io.github.dunwu</groupId>
<artifactId>spring-notes-parent</artifactId>
<version>${spring.notes.version}</version>
<version>1.0.3</version>
<relativePath>../parent</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion codes/data/jdbc/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<parent>
<groupId>io.github.dunwu</groupId>
<artifactId>spring-notes-parent</artifactId>
<version>${spring.notes.version}</version>
<version>1.0.3</version>
<relativePath>../../parent</relativePath>
</parent>
<dependencies>
Expand Down
2 changes: 1 addition & 1 deletion codes/data/orm/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<parent>
<groupId>io.github.dunwu</groupId>
<artifactId>spring-notes-parent</artifactId>
<version>${spring.notes.version}</version>
<version>1.0.3</version>
<relativePath>../../parent</relativePath>
</parent>
<dependencies>
Expand Down
2 changes: 1 addition & 1 deletion codes/data/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<parent>
<groupId>io.github.dunwu</groupId>
<artifactId>spring-notes-parent</artifactId>
<version>${spring.notes.version}</version>
<version>1.0.3</version>
<relativePath>../parent</relativePath>
</parent>
<modules>
Expand Down
2 changes: 1 addition & 1 deletion codes/example/helloworld/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<parent>
<groupId>io.github.dunwu</groupId>
<artifactId>spring-notes-parent</artifactId>
<version>${spring.notes.version}</version>
<version>1.0.3</version>
<relativePath>../../parent</relativePath>
</parent>
<dependencies>
Expand Down
2 changes: 1 addition & 1 deletion codes/example/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<parent>
<groupId>io.github.dunwu</groupId>
<artifactId>spring-notes-parent</artifactId>
<version>${spring.notes.version}</version>
<version>1.0.3</version>
<relativePath>../parent</relativePath>
</parent>
<modules>
Expand Down
2 changes: 1 addition & 1 deletion codes/integration/api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<parent>
<groupId>io.github.dunwu</groupId>
<artifactId>spring-notes-parent</artifactId>
<version>${spring.notes.version}</version>
<version>1.0.3</version>
<relativePath>../../parent</relativePath>
</parent>
<dependencies>
Expand Down
2 changes: 1 addition & 1 deletion codes/integration/cache/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<parent>
<groupId>io.github.dunwu</groupId>
<artifactId>spring-notes-parent</artifactId>
<version>${spring.notes.version}</version>
<version>1.0.3</version>
<relativePath>../../parent</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion codes/integration/libs/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<parent>
<groupId>io.github.dunwu</groupId>
<artifactId>spring-notes-parent</artifactId>
<version>${spring.notes.version}</version>
<version>1.0.3</version>
<relativePath>../../parent</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion codes/integration/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<!-- MAVEN COORDINATE BEGIN -->
<groupId>io.github.dunwu</groupId>
<artifactId>spring-notes-integration</artifactId>
<version>${spring.notes.version}</version>
<version>1.0.2</version>
<packaging>pom</packaging>
<!-- MAVEN COORDINATE END -->

Expand Down
2 changes: 1 addition & 1 deletion codes/integration/rmi/client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<parent>
<groupId>io.github.dunwu</groupId>
<artifactId>spring-notes-parent</artifactId>
<version>${spring.notes.version}</version>
<version>1.0.3</version>
<relativePath>../../parent</relativePath>
</parent>
<dependencies>
Expand Down
2 changes: 1 addition & 1 deletion codes/integration/rmi/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<parent>
<groupId>io.github.dunwu</groupId>
<artifactId>spring-notes-parent</artifactId>
<version>${spring.notes.version}</version>
<version>1.0.3</version>
<relativePath>../../parent</relativePath>
</parent>
<modules>
Expand Down
2 changes: 1 addition & 1 deletion codes/integration/rmi/server/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<parent>
<groupId>io.github.dunwu</groupId>
<artifactId>spring-notes-parent</artifactId>
<version>${spring.notes.version}</version>
<version>1.0.3</version>
<relativePath>../../../parent</relativePath>
</parent>
<dependencies>
Expand Down
2 changes: 1 addition & 1 deletion codes/integration/rpc/api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<parent>
<groupId>io.github.dunwu</groupId>
<artifactId>spring-notes-parent</artifactId>
<version>${spring.notes.version}</version>
<version>1.0.3</version>
<relativePath>../../../parent</relativePath>
</parent>
<dependencies>
Expand Down
2 changes: 1 addition & 1 deletion codes/integration/rpc/consumer/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<parent>
<groupId>io.github.dunwu</groupId>
<artifactId>spring-notes-parent</artifactId>
<version>${spring.notes.version}</version>
<version>1.0.3</version>
<relativePath>../../../parent</relativePath>
</parent>
<dependencies>
Expand Down
4 changes: 2 additions & 2 deletions codes/integration/rpc/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@
<!-- MAVEN COORDINATE BEGIN -->
<groupId>io.github.dunwu</groupId>
<artifactId>spring-notes-integration-rpc</artifactId>
<version>${spring.notes.version}</version>
<version>1.0.3</version>
<packaging>pom</packaging>
<!-- MAVEN COORDINATE END -->

<!-- RELATIONSHIP SETTINGS BEGIN -->
<parent>
<groupId>io.github.dunwu</groupId>
<artifactId>spring-notes-parent</artifactId>
<version>${spring.notes.version}</version>
<version>1.0.3</version>
<relativePath>../../parent</relativePath>
</parent>
<modules>
Expand Down
2 changes: 1 addition & 1 deletion codes/integration/rpc/provider/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<parent>
<groupId>io.github.dunwu</groupId>
<artifactId>spring-notes-parent</artifactId>
<version>${spring.notes.version}</version>
<version>1.0.3</version>
<relativePath>../../../parent</relativePath>
</parent>
<dependencies>
Expand Down
2 changes: 1 addition & 1 deletion codes/integration/scheduler/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<parent>
<groupId>io.github.dunwu</groupId>
<artifactId>spring-notes-parent</artifactId>
<version>${spring.notes.version}</version>
<version>1.0.3</version>
<relativePath>../../parent</relativePath>
</parent>
<dependencies>
Expand Down
100 changes: 8 additions & 92 deletions codes/parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<!-- MAVEN COORDINATE BEGIN -->
<groupId>io.github.dunwu</groupId>
<artifactId>spring-notes-parent</artifactId>
<version>${spring.notes.version}</version>
<version>1.0.3</version>
<packaging>pom</packaging>
<!-- MAVEN COORDINATE END -->

Expand All @@ -26,6 +26,13 @@
</dependencies>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-framework-bom</artifactId>
<version>${spring.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<!-- cache begin -->
<dependency>
<groupId>net.sf.ehcache</groupId>
Expand Down Expand Up @@ -266,95 +273,6 @@
</dependency>
<!-- security end -->

<!-- spring begin -->
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-aop</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-aspects</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-beans</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context-support</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-expression</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-jdbc</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-jms</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-messaging</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-orm</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-oxm</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-tx</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-web</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-webmvc</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-websocket</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-test</artifactId>
<version>${spring.version}</version>
<scope>test</scope>
</dependency>
<!-- spring end -->

<!-- spring data begin -->
<dependency>
<groupId>org.springframework.data</groupId>
Expand Down Expand Up @@ -430,8 +348,6 @@
<maven.compiler.source>${java.version}</maven.compiler.source>
<maven.compiler.target>${java.version}</maven.compiler.target>

<spring.notes.version>1.0.2</spring.notes.version>

<!-- 核心库版本 -->
<jetty.version>9.3.2.v20150730</jetty.version>
<spring.version>5.0.2.RELEASE</spring.version>
Expand Down
2 changes: 1 addition & 1 deletion codes/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<parent>
<groupId>io.github.dunwu</groupId>
<artifactId>spring-notes-parent</artifactId>
<version>${spring.notes.version}</version>
<version>1.0.3</version>
<relativePath>parent</relativePath>
</parent>
<modules>
Expand Down
2 changes: 1 addition & 1 deletion codes/security/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<parent>
<groupId>io.github.dunwu</groupId>
<artifactId>spring-notes-parent</artifactId>
<version>${spring.notes.version}</version>
<version>1.0.3</version>
<relativePath>../parent</relativePath>
</parent>
<modules>
Expand Down
2 changes: 1 addition & 1 deletion codes/security/shiro/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<parent>
<groupId>io.github.dunwu</groupId>
<artifactId>spring-notes-parent</artifactId>
<version>${spring.notes.version}</version>
<version>1.0.3</version>
<relativePath>../../parent</relativePath>
</parent>
<dependencies>
Expand Down
2 changes: 1 addition & 1 deletion codes/web/mvc/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<parent>
<groupId>io.github.dunwu</groupId>
<artifactId>spring-notes-parent</artifactId>
<version>${spring.notes.version}</version>
<version>1.0.3</version>
<relativePath>../../parent</relativePath>
</parent>
<dependencies>
Expand Down
2 changes: 1 addition & 1 deletion codes/web/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<parent>
<groupId>io.github.dunwu</groupId>
<artifactId>spring-notes-parent</artifactId>
<version>${spring.notes.version}</version>
<version>1.0.3</version>
<relativePath>../parent</relativePath>
</parent>
<modules>
Expand Down
2 changes: 1 addition & 1 deletion codes/web/websocket/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<parent>
<groupId>io.github.dunwu</groupId>
<artifactId>spring-notes-parent</artifactId>
<version>${spring.notes.version}</version>
<version>1.0.3</version>
<relativePath>../../parent</relativePath>
</parent>
<dependencies>
Expand Down
7 changes: 7 additions & 0 deletions scripts/version.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
@echo off

echo 修改项目版本号
cd ../codes/parent
mvn versions:set -DnewVersion=1.0.3
cd ../../scripts
pause

0 comments on commit 22a5711

Please sign in to comment.