与Maven子模块的gradle [英] gradle with maven submodule

查看:89
本文介绍了与Maven子模块的gradle的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有什么方法可以使用Maven子模块构建gradle项目吗?我在gradle中创建了一个项目,但是现在我必须添加模块(该模块使用了maven),我不知道如何使用它.有什么好办法吗?

There is any way to build gradle project with maven submodule ? I created a project in gradle but at now I must add module (that module used a maven) I don't have any idea how to used this. There is any good way?

如果有任何建议,我将不胜感激.

I will be very gratefull for any suggestions.

推荐答案

将Maven项目转换为Gradle( gradle init 是一个很好的开始),然后将Gradle构建转换为多项目构建,或将Maven构建的工件发布到本地或远程Maven存储库,并配置Gradle构建以从那里使用它(或相反).

Either convert the Maven project to Gradle (gradle init is a good start) and turn the Gradle build into a multi-project build, or publish the Maven build's artifact to the local or a remote Maven repository, and configure the Gradle build to consume it from there (or the other way around).

这篇关于与Maven子模块的gradle的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆