在Gradle中是否可以创建原型?

huangapple go评论90阅读模式
英文:

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.

https://github.com/orctom/gradle-archetype-plugin

huangapple
  • 本文由 发表于 2020年4月5日 10:32:24
  • 转载请务必保留本文链接:https://go.coder-hub.com/61037301.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定