gradle - intellij中模块的Gradle依赖关系
问题描述
我在 intellij 项目中有 2 个模块。一个 intellij 插件模块,另一个是 gradle 模块。我需要从 gradle 模块中调用插件模块的一个类。我确实通过以下路径添加了模块的依赖项:项目结构->模块->模块依赖项。但它没有解决。我还在以下代码中添加了以下代码:
设置.gradle
include ':Change',':module'
构建.gradle
dependencies{
compile project (:Change)
}
这里的“更改”是 intellij 插件模块的名称。
每次我尝试构建 gradle 时都会抛出以下错误:
Could not determine the dependencies of task ':distTar'.
Could not resolve all task dependencies for configuration ':runtimeClasspath'.
> Could not resolve project :ChangeImpactAnalysis.
Required by:
project :
> Unable to find a matching configuration of project :ChangeImpactAnalysis: None of the consumable configurations have attributes.
请帮忙
解决方案
推荐阅读
- c++ - 为自定义 PyTorch 激活函数启动正确数量的 CUDA 块
- xamarin - 为什么我在 iOS 中的 PhoneDialer.Open 中出现 FeatureNotSupported 异常,但在 Xamarin Forms 中的 Android 中工作正常?
- php - 如何在 Codeigniter 中获取特定的行数据
- wpf - 为 Web-API 和 WPF 客户端 APP 使用一个 AAD 应用注册
- python - 如何删除不在另一个数据框中的数据框行?
- python - 如何在 python manage.py 的 bash 脚本中输入提示
- python - 我如何将数据发送到电报?
- linkedin - AdCreativesV2 Batch GET API 返回 400 BAD REQUEST -“无法处理涉及多个路由实体的请求”
- flutter - 扩展超类型的 dart mixin,导致客户端类必须实现超类型的方法
- typescript - 没有宣布所有案件的歧视性工会?