将 c++ cmake-library 构建发布到本地存储库时出现 Gradle 错误
Gradle Error while publishing c++ cmake-library build to local repo
尝试将示例 cmake-library 项目发布到本地存储库。 尝试使用 Maven-publish 插件和 org.gradle.samples.custom-publication 但都失败了。
预期行为
期望 cmake 特定库(列表(成功发布到本地目录存储库。
当前行为
Execution failed for task ':list:generateMetadataFileForMainPublication'.
Invalid publication 'main':
- Variants 'debugLink' and 'releaseLink' have the same attributes and capabilities.
Please make sure either attributes or capabilities are different.
- Variants 'debugRuntime' and 'releaseRuntime' have the same attributes and
capabilities. Please make sure either attributes or capabilities are different.
上下文
我正在尝试做的事情是将我们当前的 c++ 第三方依赖项(主要使用 cmake(发布到任何 gradle 兼容存储库,以便它可以被我们的主 c++ 项目或任何其他项目使用。
重现步骤(针对错误(
只需在 cmake-library 根目录中启动发布命令
./gradlew publish
环境
- 构建扫描网址:https://scans.gradle.com/s/2ot6auxbnq4qy
此问题已在 gradle 本机示例存储库的最新提交中修复。 您可以看到回复。只需拉取最新的提交!!
相关文章:
- OpenCV 4.2.0 文件存储分段错误
- 将系数存储在头文件的数组中("does not name a type"错误)
- 使用 char* 存储数据和产生的错误
- 将 c++ cmake-library 构建发布到本地存储库时出现 Gradle 错误
- 在自定义 STUCT 中存储值会产生编译器错误 [C++]
- 将 lambda 存储为 std::函数时出现分段错误
- 尝试将现有数组的反向存储到另一个数组中时C++错误。无法使用指针
- 在向量中存储字符串存在 SEG 错误
- OpenCV 文件存储 - 错误:元素之间的解析错误 (icvYMLParseValue) 缺失
- 将自定义可绘制对象存储在数组中会导致绘制时出现分割错误
- 为什么这段代码给出错误......'a'是指针到字符指针,应该存储's'的地址,因为s是指向数组的第一个元素的指针
- 代码将向量存储为向量<vector>,为什么没有错误消息?
- 将向量对象存储在共享指针投掷错误中
- Boost::序列化存储结构时的堆栈溢出错误
- 尝试读取包含 ints 并存储在 int vector 中的文件,但我不断收到错误"Segmentation fault (core dumped)"
- 读取文件时错误,其存储替代行数据
- 替换WCHAR_T错误返回存储地址
- OpenCV文件存储错误
- 以整数形式存储错误值
- c++数组存储错误的值