Skip to content

Commit

Permalink
fix cake
Browse files Browse the repository at this point in the history
  • Loading branch information
korvalanni committed Dec 1, 2024
1 parent 9e9464e commit 539c9db
Show file tree
Hide file tree
Showing 4 changed files with 786 additions and 617 deletions.
8 changes: 4 additions & 4 deletions build.cake
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ var protocExe = protocBinDir.CombineWithFilePath("protoc.exe");
var mvnTool = new [] { "mvn.cmd", "mvn.exe", "mvn" }.Select(x => Context.Tools.Resolve(x)).Where(x => x != null).FirstOrDefault();

//Deprecated
var targetFiles = { "CloudSignProtos.java" };
var targetClasses = { "CloudSignFile", "CloudSignResult", "CloudSignConfirmResult" };
var targetFiles = new [] { "CloudSignProtos.java" };
var targetClasses = new [] { "CloudSignFile", "CloudSignResult", "CloudSignConfirmResult", "CloudSignRequest" };

//////////////////////////////////////////////////////////////////////
// TASKS
Expand Down Expand Up @@ -57,7 +57,7 @@ Task("GenerateProtoFiles")

CompileProtoFiles(patchedProtoFiles, modifiedProtoDir, destinationProtoDir);

AddDeprecatedToCloudSignProtos(destinationProtoDir);
AddDeprecatedAnnotations(destinationProtoDir);
});

public void AddDeprecatedAnnotations(DirectoryPath destinationDir)
Expand Down Expand Up @@ -90,7 +90,7 @@ public void AddDeprecatedAnnotations(DirectoryPath destinationDir)
continue;
}

lines.Insert(i, "@Deprecated");
lines.Insert(i, " @java.lang.Deprecated");
modified = true;
Information("Added @Deprecated to class {0} in file {1}", targetClass, fileName);
break;
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>ru.kontur.diadoc</groupId>
<artifactId>diadocsdk</artifactId>
<version>3.24.1-rc.2</version>
<version>3.24.0-dev.5448.33886</version>

<packaging>jar</packaging>

Expand Down
Loading

0 comments on commit 539c9db

Please sign in to comment.