Setting system properties with Gradle

In Java you can pass system properties from the command line like this: java -D MyProperty=foo MyClass And you can then get them in your code like so: public class MyClass { public String getMyProperty() { return System.getProperty("MyProperty"); } } Pretty easy, no? You can pass system arguments the same way with Gradle: gradle -D … Continue reading Setting system properties with Gradle