Default value for a $PROPERTY in Gradle

if (!project.hasProperty("build_version")) {
    ext.build_version = "1.0"
}

Leave a Comment