chore(java): make rust release to be a switch option (#2277)

This commit is contained in:
vinoyang
2025-03-28 11:26:24 +08:00
committed by GitHub
parent cba14a5743
commit c321cccc12
2 changed files with 7 additions and 4 deletions

View File

@@ -15,6 +15,9 @@
<artifactId>lancedb-core</artifactId>
<name>LanceDB Core</name>
<packaging>jar</packaging>
<properties>
<rust.release.build>false</rust.release.build>
</properties>
<dependencies>
<dependency>
@@ -68,7 +71,7 @@
</goals>
<configuration>
<path>lancedb-jni</path>
<release>true</release>
<release>${rust.release.build}</release>
<!-- Copy native libraries to target/classes for runtime access -->
<copyTo>${project.build.directory}/classes/nativelib</copyTo>
<copyWithPlatformDir>true</copyWithPlatformDir>