Skip to content

Add -Dbuild.snapshot=$SNAPSHOT in build script for libs #2757

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 16, 2025

Conversation

jmazanec15
Copy link
Member

@jmazanec15 jmazanec15 commented Jun 16, 2025

Description

Add build.snapshot to build script to fix lib build issue.

SNAPSHOT=true
./gradlew :buildJniLib -Pknn_libs=opensearchknn_nmslib -Dbuild.lib.commit_patches=false -Dbuild.lib.apply_patches=false -Dbuild.snapshot=$SNAPSHOT
...
CMake command: cmake -S jni -B jni/build -DKNN_PLUGIN_VERSION=3.1.0-SNAPSHOT -DCOMMIT_LIB_PATCHES=false -DAPPLY_LIB_PATCHES=false -DCMAKE_POLICY_VERSION_MINIMUM=3.5
...
BUILD SUCCESSFUL in 6s

Related Issues

Resolves #2569

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@jmazanec15 jmazanec15 merged commit 7634987 into opensearch-project:main Jun 16, 2025
23 checks passed
luyuncheng pushed a commit to luyuncheng/k-NN-1 that referenced this pull request Jun 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Infrastructure Changes to infrastructure, testing, CI/CD, pipelines, etc. skip-changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Knn plugin is fetching from snapshot for few dependencies
3 participants