英文:
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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论