diff --git a/Changelog/build.gradle.kts b/Changelog/build.gradle.kts index d7848449d..78a85689a 100644 --- a/Changelog/build.gradle.kts +++ b/Changelog/build.gradle.kts @@ -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 @@ -12,8 +13,8 @@ tasks.register("makeChangelog") { fromRepo = projectDir.absolutePath.toString() file = file("changelog.html") untaggedName = changelogUntaggedName - fromCommit = "e72e49fa7a072755e7f96cad65388205f6a010dc" - toRef = "HEAD" + fromRevision = "e72e49fa7a072755e7f96cad65388205f6a010dc" + toRevision = "HEAD" templateContent = file("changelog.mustache").readText() } @@ -21,7 +22,11 @@ tasks.register("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 { + notCompatibleWithConfigurationCache("invocation of 'Task.project' at execution time is unsupported") +}