소스 검색

!73 统一版本号定义
Merge pull request !73 from zendwang/feature-version-manage

铂赛东 2 년 전
부모
커밋
8129ed20b2

+ 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>

+ 5 - 1
liteflow-core/src/main/java/com/yomahub/liteflow/util/LOGOPrinter.java

@@ -10,6 +10,10 @@ import org.slf4j.LoggerFactory;
 public class LOGOPrinter {
 
 	private static final Logger LOG = LoggerFactory.getLogger(LOGOPrinter.class);
+	/**
+	 * LiteFlow 当前版本号
+	 */
+	private static final String VERSION_NO = "v2.8.0";
 
 	public static void print() {
 		StringBuilder str = new StringBuilder("\n");
@@ -19,7 +23,7 @@ public class LOGOPrinter {
 		str.append("		| |    | |  | | |  _| _____| |_  | |  | | | \\ \\ /\\ / / \n");
 		str.append("		| |___ | |  | | | |__|_____|  _| | |__| |_| |\\ V  V /  \n");
 		str.append("		|_____|___| |_| |_____|    |_|   |_____\\___/  \\_/\\_/   \n\n");
-		str.append("		Version: v2.8.0\n");
+		str.append("		Version: " + VERSION_NO + "\n");
 		str.append("		轻量且强大的规则引擎框架。\n");
 		str.append("		Small but powerful rules engine.\n");
 		str.append("================================================================================================\n");

+ 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>