增加微服务配置pom动态化
This commit is contained in:
@@ -20,11 +20,27 @@
|
||||
<maven.compiler.target>11</maven.compiler.target>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
<revision>3.0-SNAPSHOT</revision>
|
||||
{{- if eq .microserviceFrameworkType "SPRING_CLOUD" }}
|
||||
<spring.cloud.version>{{ default "2021.0.9" .microserviceFrameworkVersion }}</spring.cloud.version>
|
||||
{{- end }}
|
||||
{{- if eq .dbType "dm" }}
|
||||
<dm.driver.version>18</dm.driver.version>
|
||||
<db.hiernate.dialect.version>8.1.3.140</db.hiernate.dialect.version>
|
||||
{{- end }}
|
||||
</properties>
|
||||
{{- if eq .microserviceFrameworkType "SPRING_CLOUD" }}
|
||||
<dependencyManagement>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.springframework.cloud</groupId>
|
||||
<artifactId>spring-cloud-dependencies</artifactId>
|
||||
<version>${spring.cloud.version}</version>
|
||||
<type>pom</type>
|
||||
<scope>import</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</dependencyManagement>
|
||||
{{- end }}
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>cn.hutool</groupId>
|
||||
@@ -226,6 +242,13 @@
|
||||
<artifactId>transmittable-thread-local</artifactId>
|
||||
<version>2.12.3</version>
|
||||
</dependency>
|
||||
{{- if and (eq .microserviceFrameworkType "DUBBO") .microserviceFrameworkVersion }}
|
||||
<dependency>
|
||||
<groupId>org.apache.dubbo</groupId>
|
||||
<artifactId>dubbo-spring-boot-starter</artifactId>
|
||||
<version>{{ .microserviceFrameworkVersion }}</version>
|
||||
</dependency>
|
||||
{{- end }}
|
||||
{{- if eq .dbType "dm" }}
|
||||
<dependency>
|
||||
<groupId>dm</groupId>
|
||||
|
||||
Reference in New Issue
Block a user