Automatically increment build number with Gradle (not Android)
<p>How to automatically increment build number with Gradle?</p>

<p>Build number should be stored in file and be under version control.</p>