You can just do
outputArtifacts: {
return [{
fileTags: input.fileTags.contains("encription") ? ["encript-resource"]
: ["encript-resource2"],
filePath: FileInfo.joinPaths(project.buildDirectory, "encription",
input.baseName + ".enc")
}];
}
Ivan
> 8 окт. 2021 г., в 10:
Hi.
Ivan, only now have "reached the hands" to see your decision. Everything
turned out, the only thing at first I created two separate rules
(according to the rule for each group). It looked like a flaw. However,
then I figured out how to make a universal rule. See comment-section
"Variant 1