如何使用Gradle创建Web项目? [英] How to create a web-project with gradle?

查看:73
本文介绍了如何使用Gradle创建Web项目?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们可以使用maven创建一个空的Web项目,只需从像

We can create an empty web-project with maven just generate it from the archetype like

mvn archetype:generate -DgroupId=com.mkyong 
    -DartifactId=CounterWebApp 
    -DarchetypeArtifactId=maven-archetype-webapp 
    -DinteractiveMode=false

gradle中是否有类似的东西?我知道我们可以创建gradle构建脚本和apply plugin: 'war',但这并不是我想要的.

Is there something similat in gradle? I know we can create gradle build script and apply plugin: 'war' but that's not exactly what I'm looking for.

推荐答案

当前,在非常基本的级别上支持生成项目结构.有关更多详细信息,请参见此处.因此,答案是:不,目前不可能.您需要自行创建结构.

Currently project structure generation is supported on a very basic level. See here for more details. So the answer is: no, it's not possible right now. You need to create the structure on your own.

这篇关于如何使用Gradle创建Web项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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