英文:
Is it possible to create archetypes in Gradle?
问题
可以创建一个Gradle原型,然后基于这个原型创建一个Gradle项目吗?就像在Maven中那样。
我想为其他开发人员创建一个Scala或Java的原型,作为起始点使用。
我目前只有一个在Gradle中具有文件夹结构和初始示例启动代码的初始模板。
英文:
Is it possible to create a Gradle archetype and then create a Gradle project based on the archetype?
Just like in Maven.
I want to create a Scala or Java archetype for other developers to use as a starting point.
I currently only have an initial template in Gradle with the folder structure and initial sample startup code.
答案1
得分: 2
没有继承支持,但在GitHub上有一个可用的插件。尚未使用过,但看起来很有前景,上次更新是几个月前。
https://github.com/orctom/gradle-archetype-plugin
英文:
There isn't inherit support however there is a plugin available on GitHub. Haven't used it but it does look promising, last update was a few months ago.
专注分享java语言的经验与见解,让所有开发者获益!
评论