unum-cloud / usearch

Fast Open-Source Search & Clustering engine × for Vectors & 🔜 Strings × in C++, C, Python, JavaScript, Rust, Java, Objective-C, Swift, C#, GoLang, and Wolfram 🔍
https://unum-cloud.github.io/usearch/
Apache License 2.0
2.27k stars 142 forks source link

Java JAR contains native library twice #314

Open ccjernigan opened 1 year ago

ccjernigan commented 1 year ago

Describe the bug

There are two copies of the libusearch.so in the JAR file. This shouldn't break anything, but it would cause the JAR to be larger than it should be.

shasum -a 256 libusearch.so 0eed2c593261e727b31e83b75323de927959b4bdf36d3d48c7ce2007e018674c libusearch.so

shasum -a 256 shared/libusearch.so 0eed2c593261e727b31e83b75323de927959b4bdf36d3d48c7ce2007e018674c shared/libusearch.so

image

Steps to reproduce

  1. Download the 2.8.12 JAR from Maven central
  2. Unzip the JAR
  3. Inspect the JAR contents

Expected behavior

Jar contains a single

USearch version

2.8.12

Operating System

n/a

Hardware architecture

Arm

Which interface are you using?

Other bindings

Contact Details

No response

Is there an existing issue for this?

Code of Conduct

ashvardanian commented 11 months ago

Hey @ccjernigan! Thank you for spotting the issue! Any chance you know how to fix it? I'm only the basics of using Java and Bazel.