Quantcast
Channel: Gradle Forums - Latest posts
Viewing all articles
Browse latest Browse all 19859

How to expose plugin variable to project?

$
0
0

What purpose does that variable serve? It is a part of task or project configuration? If project, as you say, one way would be to create/set an extension property for that project, i.e. something like project.getExtensions().getExtraProperties().set(name, value). In that case I recommend exposing just one per plugin and have that one provide access to any number of actual variables and structured content. There are other ways.

See (and follow):


Viewing all articles
Browse latest Browse all 19859

Trending Articles