From 65e25d4b6a3315d6f93e797c9bf5a018c8fdc985 Mon Sep 17 00:00:00 2001 From: Luka Potkonjak Date: Mon, 27 Nov 2023 16:04:11 +0100 Subject: [PATCH] fix duplicate lib files gradle issue and rename build task --- .github/workflows/build-java.yml | 4 ++-- languages/java/build.gradle | 16 +++++++++++----- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build-java.yml b/.github/workflows/build-java.yml index 4e3192665..e500424dd 100644 --- a/.github/workflows/build-java.yml +++ b/.github/workflows/build-java.yml @@ -12,8 +12,8 @@ jobs: build_rust: uses: ./.github/workflows/build-rust-cross-platform.yml - build_dotnet: - name: Build .NET + build_java: + name: Build Java runs-on: ubuntu-22.04 needs: - generate_schemas diff --git a/languages/java/build.gradle b/languages/java/build.gradle index 0dac1f7d2..6fe925530 100644 --- a/languages/java/build.gradle +++ b/languages/java/build.gradle @@ -86,10 +86,16 @@ jar { // Requires GitHub workflow to copy native library to resources // Uncomment the line below and copyNativeLib task above to use the local build (modify architecture if needed) // dependsOn tasks.named("copyNativeLib") - from('src/main/resources') { - include 'darwin-aarch64/**' - include 'darwin-x64/**' - include 'ubuntu-x64/**' - include 'windows-x64/**' + into('darwin-aarch64') { + from 'src/main/resources/darwin-aarch64' + } + into('darwin-x64') { + from 'src/main/resources/darwin-x64' + } + into('ubuntu-x64') { + from 'src/main/resources/ubuntu-x64' + } + into('windows-x64') { + from 'src/main/resources/windows-x64' } }