步骤,以转换Maven构建到摇篮需要的? [英] Steps Needed in order to convert Maven Build to Gradle?

查看:142
本文介绍了步骤,以转换Maven构建到摇篮需要的?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

完全新的编码,需要在某些方面帮助转换一个Maven构建一个构建的gradle为一个概念证明。

Completely new to coding and needed some help in regards to converting a maven build to a gradle build for a proof of concept.

我知道我应该用我的build.gradle和init.gradle文件中工作,但我不知道是什么code编写或如何指向与我的pom.xml的项目文件夹。

I know i should be working with my build.gradle and init.gradle files but I don't know what code to write or how to point to my project folder with the pom.xml.

我希望我没有混淆你,因为,我有点迷惑自己。

I hope I'm not confusing you because, I'm a bit confused myself.

干杯

拉​​尔夫

推荐答案

第一步是将含有(主),POM的目录下执行初始化的gradle 。这将转换Maven构建一个摇篮打造,生成 settings.gradle 文件和一个或多个的build.gradle 文件。对于简单的Maven构建,这是所有你需要做的。对于更复杂的Maven构建,它可能有必要在摇篮侧不能被自动转换手动添加功能。

The first step is to run gradle init in the directory containing the (master) POM. This will convert the Maven build to a Gradle build, generating a settings.gradle file and one or more build.gradle files. For simpler Maven builds, this is all you need to do. For more complex Maven builds, it may be necessary to manually add functionality on the Gradle side that couldn't be converted automatically.

这篇关于步骤,以转换Maven构建到摇篮需要的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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