aboutsummaryrefslogtreecommitdiff
path: root/buildSrc
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
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')
-rw-r--r--buildSrc/build.gradle.kts1
-rw-r--r--buildSrc/settings.gradle.kts0
-rw-r--r--buildSrc/src/main/kotlin/ca/allanwang/kau/ChangelogGenerator.kt3
3 files changed, 3 insertions, 1 deletions
diff --git a/buildSrc/build.gradle.kts b/buildSrc/build.gradle.kts
index 5939d89..83a3370 100644
--- a/buildSrc/build.gradle.kts
+++ b/buildSrc/build.gradle.kts
@@ -1,5 +1,6 @@
plugins {
`kotlin-dsl`
+ maven
}
group = "ca.allanwang"
diff --git a/buildSrc/settings.gradle.kts b/buildSrc/settings.gradle.kts
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/buildSrc/settings.gradle.kts
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