Skip to content

Commit

Permalink
Update changelog task
Browse files Browse the repository at this point in the history
  • Loading branch information
mezz committed Sep 6, 2024
1 parent 6df8b44 commit 53fcbaa
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions Changelog/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import se.bjurr.gitchangelog.plugin.gradle.GitChangelogTask

plugins {
id("se.bjurr.gitchangelog.git-changelog-gradle-plugin") version("1.77.2")
// https://plugins.gradle.org/plugin/se.bjurr.gitchangelog.git-changelog-gradle-plugin
id("se.bjurr.gitchangelog.git-changelog-gradle-plugin") version("2.1.2")
}

// gradle.properties
Expand All @@ -12,16 +13,20 @@ tasks.register<GitChangelogTask>("makeChangelog") {
fromRepo = projectDir.absolutePath.toString()
file = file("changelog.html")
untaggedName = changelogUntaggedName
fromCommit = "e72e49fa7a072755e7f96cad65388205f6a010dc"
toRef = "HEAD"
fromRevision = "e72e49fa7a072755e7f96cad65388205f6a010dc"
toRevision = "HEAD"
templateContent = file("changelog.mustache").readText()
}

tasks.register<GitChangelogTask>("makeMarkdownChangelog") {
fromRepo = projectDir.absolutePath.toString()
file = file("changelog.md")
untaggedName = changelogUntaggedName
fromCommit = System.getenv("GIT_PREVIOUS_SUCCESSFUL_COMMIT") ?: "HEAD~10"
toRef = "HEAD"
fromRevision = System.getenv("GIT_PREVIOUS_SUCCESSFUL_COMMIT") ?: "HEAD~10"
toRevision = "HEAD"
templateContent = file("changelog-markdown.mustache").readText()
}

tasks.withType<GitChangelogTask> {
notCompatibleWithConfigurationCache("invocation of 'Task.project' at execution time is unsupported")
}

0 comments on commit 53fcbaa

Please sign in to comment.