英文:
Gradle : how to use Maven project source as dependency
问题
我使用IntelliJ开发Gradle Java项目。目前我使用的是:
dependencyManagement {
imports {
mavenBom 'com.health.project:1.0'
}
}
...
implementation 'com.health.project:common'
在我的Gradle中以检索此依赖项。
但现在我需要修改这个项目com.health.project
的源代码,所以我想知道如何在IntelliJ中导入它,并告诉IntelliJ将导入的项目用作依赖项?
英文:
I use Intellij to develop a gradle Java project. For the moment I use :
dependencyManagement {
imports {
mavenBom 'com.health.project:1.0"
}
}
...
implementation 'com.health.project:common'
in my gradle to retrieve this dependency.
But now I need to modify the source code of this project com.health.project
, so I want to know how I can import it in intellij and tells intellij to use the imported project as dependency ?
专注分享java语言的经验与见解,让所有开发者获益!
评论