aboutsummaryrefslogtreecommitdiff
path: root/buildSrc/src/main/kotlin
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2019-06-05 23:54:17 -0400
committerGitHub <noreply@github.com>2019-06-05 23:54:17 -0400
commit2475607338e6c4c0b70dbcb307f0dc7058950a4d (patch)
tree534e6f14f139a57269b91651032660ca1c5886ab /buildSrc/src/main/kotlin
parent8052a9a4b5f64191d19912d53e16d7e49a587a17 (diff)
downloadkau-2475607338e6c4c0b70dbcb307f0dc7058950a4d.tar.gz
kau-2475607338e6c4c0b70dbcb307f0dc7058950a4d.tar.bz2
kau-2475607338e6c4c0b70dbcb307f0dc7058950a4d.zip
Kotlin dsl (#199)
* Add blank settings kts and maven to gradle plugin * Return entry list
Diffstat (limited to 'buildSrc/src/main/kotlin')
-rw-r--r--buildSrc/src/main/kotlin/ca/allanwang/kau/ChangelogGenerator.kt3
1 files changed, 2 insertions, 1 deletions
diff --git a/buildSrc/src/main/kotlin/ca/allanwang/kau/ChangelogGenerator.kt b/buildSrc/src/main/kotlin/ca/allanwang/kau/ChangelogGenerator.kt
index 8200484..5e21b7e 100644
--- a/buildSrc/src/main/kotlin/ca/allanwang/kau/ChangelogGenerator.kt
+++ b/buildSrc/src/main/kotlin/ca/allanwang/kau/ChangelogGenerator.kt
@@ -72,7 +72,7 @@ open class ChangelogGenerator(private val project: Project) {
}
@JvmOverloads
- fun generate(inputUri: String, outputUri: String = "${project.rootDir}/docs/Changelog.md") {
+ fun generate(inputUri: String, outputUri: String = "${project.rootDir}/docs/Changelog.md"): List<ChangelogEntry> {
val entries = read(inputUri)
val output = File(outputUri)
if (output.exists()) {
@@ -100,5 +100,6 @@ open class ChangelogGenerator(private val project: Project) {
}
output.writeText(markdown)
println("Generated changelog at ${output.absolutePath}")
+ return entries
}
} \ No newline at end of file