Monday 15 April 2013

Add properties to project in Gradle plugin -



Add properties to project in Gradle plugin -

i'm trying add together properties project, configured custom plugin.

class myplugin implements plugin<project> { @override void apply(project project) { project.properties.put("my_property", "123) println(project.properties.get("my_property")) } }

i see null in output. missing here?

here's how properties should set:

class myplugin implements plugin<project> { @override void apply(project project) { project.ext.my_property = 123 println(project.my_property) } }

and here can find whole section on how properties work gradle.

gradle

No comments:

Post a Comment