Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion cmdline/src/main/java/io/opentdf/platform/Command.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,23 @@
import java.util.concurrent.ExecutionException;
import java.util.function.Consumer;

/**
* Constants for the TDF command line tool.
* These must be compile-time constants to appear in annotations.
*/
class Versions {
// Version of the SDK, managed by release-please.
public static final String SDK = "0.7.6"; // x-release-please-version

// This sdk aims to support this version of the TDF spec; currently 4.3.0.
public static final String TDF_SPEC = "4.3.0";
}

@CommandLine.Command(
name = "tdf",
subcommands = {HelpCommand.class},
version = "{\"version\":\"0.7.5\",\"tdfSpecVersion\":\"4.3.0\"}"
version =
"{\"version\":\"" + Versions.SDK + "\",\"tdfSpecVersion\":\"" + Versions.TDF_SPEC + "\"}"
)
class Command {

Expand Down
10 changes: 8 additions & 2 deletions release-please.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,11 @@
"group-pull-request-title-pattern": "chore(${branch}): release ${version}",
"packages": {
".": {}
}
}
},
"extra-files": [
{
"type": "generic",
"path": "cmdline/src/main/java/io/opentdf/platform/Command.java"
}
]
}
Loading