Automatic imports in Gradle plugin

放肆的年华 提交于 2019-12-10 20:48:30

问题


I have created a Gradle plugin that has several custom task types. In order to use those task types in the build I need to explicitly import them. Is there a way to import those task classes automatically?


回答1:


As far as I know, adding implicit imports isn't a public feature at this time. What you can do is to provide a plugin that covers the main use cases so that it's rarely necessary to declare tasks explicitly.



来源:https://stackoverflow.com/questions/18984034/automatic-imports-in-gradle-plugin

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!