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

Pass dynamic arguments to a plugin

$
0
0

It’s largely dependent on what is supported by what you’re using that is out of your control. My expectation is that the release task is added by org.some.otherplugin and that you can’t change its code.

and

Also, the code shown doesn’t really indicate what how MyCustomClass and someReleaseFunction() are interacting with the release task.

Yes, you are completely right. There is an weaving of a few projects at different levels, and its hard to simplify that into an example I can put on here. There is a particular case, when a specific variable is not set, and that is the failure case I am trying to address.
I just found out about https://docs.gradle.org/4.9/dsl/org.gradle.api.plugins.ExtraPropertiesExtension.html
I just added project.ext.set(keyString, valueString) before the apply plugin, it does solve the problem.
Thanks for the help!


Viewing all articles
Browse latest Browse all 19859

Trending Articles