Skip to content

Commit e4c0502

Browse files
committed
--amend
1 parent 524543b commit e4c0502

File tree

1 file changed

+8
-1
lines changed
  • extensions/grpc/codegen/src/main/java/io/quarkus/grpc/deployment

1 file changed

+8
-1
lines changed

extensions/grpc/codegen/src/main/java/io/quarkus/grpc/deployment/GrpcCodeGen.java

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,8 +286,15 @@ private void extractProtosFromArtifact(Path workDir, Collection<Path> protoFiles
286286
protoDirectories.add(path.getParent().normalize().toAbsolutePath().toString());
287287
} else { // archive
288288
Path relativePath = path.getRoot().relativize(path);
289+
String uniqueName = artifact.getGroupId() + ":" + artifact.getArtifactId();
290+
if (artifact.getVersion() != null) {
291+
uniqueName += ":" + artifact.getVersion();
292+
}
293+
if (artifact.getClassifier() != null) {
294+
uniqueName += "-" + artifact.getClassifier();
295+
}
289296
Path protoUnzipDir = workDir
290-
.resolve(HashUtil.sha1(root.normalize().toAbsolutePath().toString()))
297+
.resolve(HashUtil.sha1(uniqueName))
291298
.normalize().toAbsolutePath();
292299
try {
293300
Files.createDirectories(protoUnzipDir);

0 commit comments

Comments
 (0)