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 }