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

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -