فهرست منبع

统一版本号定义

zendwang 2 سال پیش
والد
کامیت
e371aa0f1c

+ 2 - 0
.gitignore

@@ -81,3 +81,5 @@ atlassian-ide-plugin.xml
 */logs
 
 /payClear-timer/.tern-project
+
+.flattened-pom.xml

+ 2 - 1
liteflow-core/pom.xml

@@ -9,7 +9,8 @@
     <parent>
 		<groupId>com.yomahub</groupId>
 		<artifactId>liteflow</artifactId>
-		<version>2.8.0</version>
+		<version>${revision}</version>
+		<relativePath>../pom.xml</relativePath>
 	</parent>
 
 	<dependencies>

+ 2 - 1
liteflow-script-common/pom.xml

@@ -5,7 +5,8 @@
     <parent>
         <artifactId>liteflow</artifactId>
         <groupId>com.yomahub</groupId>
-        <version>2.8.0</version>
+        <version>${revision}</version>
+        <relativePath>../pom.xml</relativePath>
     </parent>
     <modelVersion>4.0.0</modelVersion>
 

+ 2 - 1
liteflow-script-groovy/pom.xml

@@ -5,7 +5,8 @@
     <parent>
         <artifactId>liteflow</artifactId>
         <groupId>com.yomahub</groupId>
-        <version>2.8.0</version>
+        <version>${revision}</version>
+        <relativePath>../pom.xml</relativePath>
     </parent>
     <modelVersion>4.0.0</modelVersion>
 

+ 2 - 1
liteflow-script-qlexpress/pom.xml

@@ -5,7 +5,8 @@
     <parent>
         <artifactId>liteflow</artifactId>
         <groupId>com.yomahub</groupId>
-        <version>2.8.0</version>
+        <version>${revision}</version>
+        <relativePath>../pom.xml</relativePath>
     </parent>
     <modelVersion>4.0.0</modelVersion>
 

+ 2 - 1
liteflow-spring-boot-starter/pom.xml

@@ -10,7 +10,8 @@
     <parent>
         <artifactId>liteflow</artifactId>
         <groupId>com.yomahub</groupId>
-        <version>2.8.0</version>
+        <version>${revision}</version>
+        <relativePath>../pom.xml</relativePath>
     </parent>
 
     <dependencies>

+ 2 - 1
liteflow-spring/pom.xml

@@ -5,7 +5,8 @@
     <parent>
         <artifactId>liteflow</artifactId>
         <groupId>com.yomahub</groupId>
-        <version>2.8.0</version>
+        <version>${revision}</version>
+        <relativePath>../pom.xml</relativePath>
     </parent>
     <modelVersion>4.0.0</modelVersion>
 

+ 2 - 1
liteflow-testcase-el/liteflow-testcase-el-declare-springboot/pom.xml

@@ -5,7 +5,8 @@
     <parent>
         <artifactId>liteflow-testcase-el</artifactId>
         <groupId>com.yomahub</groupId>
-        <version>2.8.0</version>
+        <version>${revision}</version>
+        <relativePath>../pom.xml</relativePath>
     </parent>
     <modelVersion>4.0.0</modelVersion>
 

+ 2 - 1
liteflow-testcase-el/liteflow-testcase-el-script-groovy-springboot/pom.xml

@@ -5,7 +5,8 @@
     <parent>
         <artifactId>liteflow-testcase-el</artifactId>
         <groupId>com.yomahub</groupId>
-        <version>2.8.0</version>
+        <version>${revision}</version>
+        <relativePath>../pom.xml</relativePath>
     </parent>
     <modelVersion>4.0.0</modelVersion>
 

+ 2 - 1
liteflow-testcase-el/liteflow-testcase-el-script-qlexpress-springboot/pom.xml

@@ -5,7 +5,8 @@
     <parent>
         <artifactId>liteflow-testcase-el</artifactId>
         <groupId>com.yomahub</groupId>
-        <version>2.8.0</version>
+        <version>${revision}</version>
+        <relativePath>../pom.xml</relativePath>
     </parent>
     <modelVersion>4.0.0</modelVersion>
 

+ 2 - 1
liteflow-testcase-el/liteflow-testcase-el-springboot/pom.xml

@@ -5,7 +5,8 @@
     <parent>
         <artifactId>liteflow-testcase-el</artifactId>
         <groupId>com.yomahub</groupId>
-        <version>2.8.0</version>
+        <version>${revision}</version>
+        <relativePath>../pom.xml</relativePath>
     </parent>
     <modelVersion>4.0.0</modelVersion>
 

+ 2 - 1
liteflow-testcase-el/pom.xml

@@ -5,7 +5,8 @@
     <parent>
         <artifactId>liteflow</artifactId>
         <groupId>com.yomahub</groupId>
-        <version>2.8.0</version>
+        <version>${revision}</version>
+        <relativePath>../pom.xml</relativePath>
     </parent>
     <modelVersion>4.0.0</modelVersion>
     <packaging>pom</packaging>

+ 2 - 1
liteflow-testcase-old/liteflow-testcase-declare-springboot/pom.xml

@@ -5,7 +5,8 @@
     <parent>
         <artifactId>liteflow-testcase-old</artifactId>
         <groupId>com.yomahub</groupId>
-        <version>2.8.0</version>
+        <version>${revision}</version>
+        <relativePath>../pom.xml</relativePath>
     </parent>
     <modelVersion>4.0.0</modelVersion>
 

+ 2 - 1
liteflow-testcase-old/liteflow-testcase-nospring/pom.xml

@@ -5,7 +5,8 @@
     <parent>
         <artifactId>liteflow-testcase-old</artifactId>
         <groupId>com.yomahub</groupId>
-        <version>2.8.0</version>
+        <version>${revision}</version>
+        <relativePath>../pom.xml</relativePath>
     </parent>
     <modelVersion>4.0.0</modelVersion>
 

+ 2 - 1
liteflow-testcase-old/liteflow-testcase-script-groovy-springboot/pom.xml

@@ -5,7 +5,8 @@
     <parent>
         <artifactId>liteflow-testcase-old</artifactId>
         <groupId>com.yomahub</groupId>
-        <version>2.8.0</version>
+        <version>${revision}</version>
+        <relativePath>../pom.xml</relativePath>
     </parent>
     <modelVersion>4.0.0</modelVersion>
 

+ 2 - 1
liteflow-testcase-old/liteflow-testcase-script-qlexpress-springboot/pom.xml

@@ -5,7 +5,8 @@
     <parent>
         <artifactId>liteflow-testcase-old</artifactId>
         <groupId>com.yomahub</groupId>
-        <version>2.8.0</version>
+        <version>${revision}</version>
+        <relativePath>../pom.xml</relativePath>
     </parent>
     <modelVersion>4.0.0</modelVersion>
 

+ 2 - 1
liteflow-testcase-old/liteflow-testcase-springboot/pom.xml

@@ -5,7 +5,8 @@
     <parent>
         <artifactId>liteflow-testcase-old</artifactId>
         <groupId>com.yomahub</groupId>
-        <version>2.8.0</version>
+        <version>${revision}</version>
+        <relativePath>../pom.xml</relativePath>
     </parent>
     <modelVersion>4.0.0</modelVersion>
 

+ 2 - 1
liteflow-testcase-old/liteflow-testcase-springnative/pom.xml

@@ -5,7 +5,8 @@
     <parent>
         <artifactId>liteflow-testcase-old</artifactId>
         <groupId>com.yomahub</groupId>
-        <version>2.8.0</version>
+        <version>${revision}</version>
+        <relativePath>../pom.xml</relativePath>
     </parent>
     <modelVersion>4.0.0</modelVersion>
 

+ 2 - 1
liteflow-testcase-old/pom.xml

@@ -5,7 +5,8 @@
     <parent>
         <artifactId>liteflow</artifactId>
         <groupId>com.yomahub</groupId>
-        <version>2.8.0</version>
+        <version>${revision}</version>
+        <relativePath>../pom.xml</relativePath>
     </parent>
     <modelVersion>4.0.0</modelVersion>
     <packaging>pom</packaging>

+ 30 - 1
pom.xml

@@ -5,7 +5,7 @@
 	<groupId>com.yomahub</groupId>
 	<artifactId>liteflow</artifactId>
 	<packaging>pom</packaging>
-	<version>2.8.0</version>
+	<version>${revision}</version>
 	<name>liteflow</name>
 	<description>a lightweight and practical micro-process framework</description>
 	<url>https://github.com/bryan31/liteflow</url>
@@ -39,6 +39,9 @@
 	</scm>
 
 	<properties>
+		<revision>2.8.0</revision>
+		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+		<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
 		<maven.compiler.source>8</maven.compiler.source>
 		<maven.compiler.target>8</maven.compiler.target>
 		<springboot.version>2.0.5.RELEASE</springboot.version>
@@ -280,6 +283,32 @@
 					</execution>
 				</executions>
 			</plugin>
+			<!-- version number -->
+			<plugin>
+				<groupId>org.codehaus.mojo</groupId>
+				<artifactId>flatten-maven-plugin</artifactId>
+				<version>1.2.7</version>
+				<configuration>
+					<updatePomFile>true</updatePomFile>
+					<flattenMode>resolveCiFriendliesOnly</flattenMode>
+				</configuration>
+				<executions>
+					<execution>
+						<id>flatten</id>
+						<phase>process-resources</phase>
+						<goals>
+							<goal>flatten</goal>
+						</goals>
+					</execution>
+					<execution>
+						<id>flatten.clean</id>
+						<phase>clean</phase>
+						<goals>
+							<goal>clean</goal>
+						</goals>
+					</execution>
+				</executions>
+			</plugin>
 		</plugins>
 	</build>