Andrey Adamovich
Andrey Adamovich

Reputation: 20683

Automatic imports in Gradle plugin

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?

Upvotes: 3

Views: 520

Answers (1)

Peter Niederwieser
Peter Niederwieser

Reputation: 123996

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.

Upvotes: 4

Related Questions