Gradle:如何将Maven项目源代码用作依赖

huangapple 未分类评论45阅读模式
英文:

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 ?

huangapple
  • 本文由 发表于 2020年4月7日 21:00:30
  • 转载请务必保留本文链接:https://java.coder-hub.com/61080618.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定