Add properties to project in Gradle plugin -
I am trying to add some properties in a project, which is configured with custom plugin.
Class MyPlugin Applicable plugin & lt; Project & gt; {@Override void apply} {project.properties.put ("my_property", "123) println (project.properties.get (" my_property "))}}
I What am I missing here?
Here's how to set additional properties:
class MyPlugin applicable plugin & lt; Project & gt; {@Override void apply} {project.ext.my_property = 123 println (project.my_property)}}
And how can you find out the entire section of the properties that work with the gradient.
Comments
Post a Comment