refactor: 将 JNI Java 示例从 jni/java 移至根目录 examples-jni

- 将 jni/java/ 整体迁移到 examples-jni/
- 更新 release.yml 中 JAR 构建路径为 examples-jni
- 更新 build.gradle 默认 lib.path 为 ../target/release
- 更新 README 与示例注释中的路径说明

Made-with: Cursor
This commit is contained in:
桥下红药
2026-03-13 02:24:25 +08:00
parent 6e7c6f02e4
commit b011800b1d
10 changed files with 12 additions and 12 deletions
+2 -2
View File
@@ -32,7 +32,7 @@ jobs:
java-version: '11'
- name: Build fat JAR
working-directory: jni/java
working-directory: examples-jni
run: |
chmod +x gradlew 2>/dev/null || true
gradle shadowJar -PprojectVersion=${{ github.event.inputs.version }} --no-daemon
@@ -42,7 +42,7 @@ jobs:
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ github.event.inputs.version }}
files: jni/java/build/libs/dht-crawler-jni-example-${{ github.event.inputs.version }}.jar
files: examples-jni/build/libs/dht-crawler-jni-example-${{ github.event.inputs.version }}.jar
# ──────────────────────────────────────────────────────────────────
# 各平台 Rust 构建(example 可执行 + JNI so/dll/dylib