guard microservice dependencies by template flag

This commit is contained in:
oyo
2026-06-16 18:43:30 +08:00
parent 752a2f6c6f
commit d99f3e4e49
2 changed files with 5 additions and 0 deletions

View File

@@ -50,6 +50,7 @@
<artifactId>{{ .parentArtifactId }}-public-service</artifactId>
<version>${revision}</version>
</dependency>
{{ if hasKey . "microserviceFrameworkType" }}
<dependency>
<groupId>{{ .groupId }}</groupId>
<artifactId>{{ .parentArtifactId }}-remote-contract-types</artifactId>
@@ -60,6 +61,7 @@
<artifactId>{{ .parentArtifactId }}-client</artifactId>
<version>${revision}</version>
</dependency>
{{ end }}
<dependency>
<groupId>{{ .groupId }}</groupId>
<artifactId>{{ .parentArtifactId }}-common</artifactId>