Skip to content

Conversation

@gosonzhang
Copy link
Contributor

Fixes #11861

Adjust the SDK version acquisition method

@gosonzhang gosonzhang merged commit 12c2998 into apache:master May 13, 2025
8 checks passed
@gosonzhang gosonzhang deleted the master-CI branch May 13, 2025 02:44
try (InputStream is = ProxyUtils.class.getResourceAsStream("/git.properties")) {
properties.load(is);
sdkVersion = properties.getProperty("git.build.version");
try (InputStream is = ProxyUtils.class.getClassLoader().getResourceAsStream("sdk.version")) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

src/main/resources false src/main/resources-filtered true

https://maven.apache.org/plugins/maven-resources-plugin/examples/filter.html

Using Maven resource filtering seems to be a good solution, which does not rely on git.

vernedeng pushed a commit that referenced this pull request May 13, 2025
…ictionary in the base path (#11862)

(cherry picked from commit 12c2998)
vernedeng pushed a commit that referenced this pull request May 13, 2025
…ictionary in the base path (#11862)

(cherry picked from commit 12c2998)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug][CI] Compile dataproxy-sdk fail when there is no .git dictionary in the base path

4 participants