Skip to content

Commit

Permalink
[HUDI-8184] Fix Hudi CLI 'version' command to return Hudi version (ap…
Browse files Browse the repository at this point in the history
…ache#10973)

Co-authored-by: Y Ethan Guo <[email protected]>
  • Loading branch information
pt657407064 and yihua authored Sep 9, 2024
1 parent 9bb8dcd commit 703980d
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
2 changes: 2 additions & 0 deletions hudi-cli/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,14 @@
<properties>
<jar.mainclass>org.apache.hudi.cli.Main</jar.mainclass>
<main.basedir>${project.parent.basedir}</main.basedir>
<hudi.version>${project.parent.version}</hudi.version>
</properties>

<build>
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
</resource>
</resources>
<pluginManagement>
Expand Down
6 changes: 5 additions & 1 deletion hudi-cli/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,8 @@ spring:
shell:
history:
enabled: true
name: hoodie-cmd.log
name: hoodie-cmd.log
command:
version:
template: "classpath:version.txt"

1 change: 1 addition & 0 deletions hudi-cli/src/main/resources/version.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
${hudi.version}
1 change: 1 addition & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -700,6 +700,7 @@
<exclude>**/*.log</exclude>
<exclude>**/*.sqltemplate</exclude>
<exclude>**/compose_env</exclude>
<exclude>**/main/resources/version.txt</exclude>
<exclude>**/*NOTICE*</exclude>
<exclude>**/*LICENSE*</exclude>
<exclude>**/dependency-reduced-pom.xml</exclude>
Expand Down

0 comments on commit 703980d

Please sign in to comment.