Composite builds using directly github repo location

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

Composite builds using directly github repo location

问题

我们拥有一个微服务架构,并且对于每个微服务都有许多依赖项目。假设在我们的情况下,我们可能会在单独的存储库中拥有库,而在另一个单独的存储库中拥有微服务。我在探索是否有可能使用库的 GitHub 链接将库作为 includeBuild 进行提及。类似于以下内容:

// settings.gradle

includeBuild "github.com/myorg/utilibrepo"

在 Gradle 中是否支持这样做,而不是将依赖项下载为 Git 子模块,然后进行 includeBuild,上述选项将更加直接(类似于 Golang 中的导入选项)。

谢谢,
Mawy

英文:

We have a microservice architecture and with number of dependent projects for each microservices. Lets say, in our case, we might have library in a separate repo and microservice in a separate repo. I was exploring on whether any possblities of mentioning the library as a includeBuild using the librarry github link. Something like below

//settings.gradle

includeBuild "github.com/myorg/utilibrepo"

Is this supported in gradle, instead of donwloading the dependcies as a gitsubmodules and then doing a inlcudebuild the above option will be straighforward (like import options in golang)

Thanks,
Mawy

答案1

得分: 0

你可以通过source dependencies来实现类似的功能。然而,这个特性有一些限制,因此适用性取决于你的使用情况。

英文:

You can achieve something like that with source dependencies. There are however limitations on this feature, so applicability will depend on your use case.

huangapple
  • 本文由 发表于 2020年5月19日 19:58:37
  • 转载请务必保留本文链接:https://java.coder-hub.com/61890505.html
匿名

发表评论

匿名网友

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

确定