diff --git a/hudi-cli/pom.xml b/hudi-cli/pom.xml index 13a4f4695bdb6..124811d80c667 100644 --- a/hudi-cli/pom.xml +++ b/hudi-cli/pom.xml @@ -29,12 +29,14 @@ org.apache.hudi.cli.Main ${project.parent.basedir} + ${project.parent.version} src/main/resources + true diff --git a/hudi-cli/src/main/resources/application.yml b/hudi-cli/src/main/resources/application.yml index 036524c58d5ed..ff2e914cb03df 100644 --- a/hudi-cli/src/main/resources/application.yml +++ b/hudi-cli/src/main/resources/application.yml @@ -20,4 +20,8 @@ spring: shell: history: enabled: true - name: hoodie-cmd.log \ No newline at end of file + name: hoodie-cmd.log + command: + version: + template: "classpath:version.txt" + diff --git a/hudi-cli/src/main/resources/version.txt b/hudi-cli/src/main/resources/version.txt new file mode 100644 index 0000000000000..37a4ae9d905a3 --- /dev/null +++ b/hudi-cli/src/main/resources/version.txt @@ -0,0 +1 @@ +${hudi.version} \ No newline at end of file diff --git a/pom.xml b/pom.xml index 35a4a7a5bf4ea..e1a675969b0cc 100644 --- a/pom.xml +++ b/pom.xml @@ -700,6 +700,7 @@ **/*.log **/*.sqltemplate **/compose_env + **/main/resources/version.txt **/*NOTICE* **/*LICENSE* **/dependency-reduced-pom.xml