diff options
-rw-r--r-- | buildSrc/build.gradle.kts | 1 | ||||
-rw-r--r-- | buildSrc/settings.gradle.kts | 0 | ||||
-rw-r--r-- | buildSrc/src/main/kotlin/ca/allanwang/kau/ChangelogGenerator.kt | 3 |
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 |