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

Active Directory Authenticated Proxy Server with Squid or CNTLM -

java - @PluginTarget(Node.class) not registering as neo4j plugin -

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