From 32c0046e210c4f5650b8bd835bb4aa6c756381ca Mon Sep 17 00:00:00 2001 From: Jade Turner Date: Wed, 28 Aug 2024 14:33:36 +0800 Subject: [PATCH] fix --- thirdparty/catch2/build.gradle | 4 ++-- thirdparty/catch2/publish.gradle | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/thirdparty/catch2/build.gradle b/thirdparty/catch2/build.gradle index d74e0a7769a..a4ffbcfe703 100644 --- a/thirdparty/catch2/build.gradle +++ b/thirdparty/catch2/build.gradle @@ -38,8 +38,8 @@ model { "${nativeName}"(NativeLibrarySpec) { sources.cpp { source { - srcDirs "src/main/native/cpp/**/*.cpp" - include '*.cpp' + srcDirs "src/main/native/cpp" + include '**/*.cpp' } exportedHeaders { srcDirs 'src/main/native/include', diff --git a/thirdparty/catch2/publish.gradle b/thirdparty/catch2/publish.gradle index a1605a1464d..660b6b80fe4 100644 --- a/thirdparty/catch2/publish.gradle +++ b/thirdparty/catch2/publish.gradle @@ -15,7 +15,7 @@ task cppSourcesZip(type: Zip) { into '/' } - from('src') { + from('src/main/native/cpp') { into '/' } } @@ -29,7 +29,7 @@ task cppHeadersZip(type: Zip) { into '/' } - from('include') { + from('src/main/native/include') { into '/' } } @@ -42,11 +42,11 @@ addTaskToCopyAllOutputs(cppSourcesZip) model { publishing { - def googletestTaskList = createComponentZipTasks($.components, ['catch2'], zipBaseName, Zip, project, includeStandardZipFormat) + def catch2TaskList = createComponentZipTasks($.components, ['catch2'], zipBaseName, Zip, project, includeStandardZipFormat) publications { cpp(MavenPublication) { - googletestTaskList.each { + catch2TaskList.each { artifact it }