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

@@ -16,11 +16,14 @@
<groupId>{{ .groupId }}</groupId> <groupId>{{ .groupId }}</groupId>
<artifactId>{{ .artifactId }}-service</artifactId> <artifactId>{{ .artifactId }}-service</artifactId>
</dependency> </dependency>
{{ if hasKey . "microserviceFrameworkType" }}
<dependency> <dependency>
<groupId>{{ .groupId }}</groupId> <groupId>{{ .groupId }}</groupId>
<artifactId>{{ .parentArtifactId }}-remote-contract-interfaces</artifactId> <artifactId>{{ .parentArtifactId }}-remote-contract-interfaces</artifactId>
<version>${revision}</version> <version>${revision}</version>
</dependency> </dependency>
{{ end }}
</dependencies> </dependencies>

View File

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