This is a Gradle plugin for Git Changelog Lib.
There is a complete running example here.
There are some more examples in the build.gradle.
Here is and example that will produce a CHANGELOG.md.
buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath "gradle.plugin.se.bjurr.gitchangelog:git-changelog-gradle-plugin:1.45"
}
}
apply plugin: "se.bjurr.gitchangelog.git-changelog-gradle-plugin"
task gitChangelogTask(type: se.bjurr.gitchangelog.plugin.gradle.GitChangelogTask) {
filePath = "CHANGELOG.md";
templateContent = new File('changelog.mustache').getText('UTF-8');
}
And then to generate CHANGELOG.md, just run gradle gitChangelog
.
More documentation can be found in the Git Changelog Lib.
To build the code you need to run build.sh
in root of repo. You may also have a look at .travis.yml
.
To do a release you need to do ./gradlew release -Dgradle.publish.key=... -Dgradle.publish.secret=...
and release the artifact from staging. More information here.