Skip to content

Commit 28384b5

Browse files
committed
Applied new Shipkit Auto Version plugin property
Mockito Scala uses Shipkit Gradle plugins. The Shipkit Auto Version plugin exposes now new 'ext' property for getting previous revision: project.ext.'shipkit-auto-version.previous-tag'. This property is easier to use than earlier used 'shipkit-auto-version.previous-version'; using it makes also code clearer. Earlier to get previous revision (e.g. for generating chengelog with Shipkit Changelog plugin) concatenation and possible conditional had to be used. Now it requires just to refer to 'shipkit-auto-version.previous-tag' alone.
1 parent ac99c7c commit 28384b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gradle/shipkit.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ apply plugin: "org.shipkit.shipkit-changelog"
33
apply plugin: "org.shipkit.shipkit-gh-release"
44

55
tasks.named("generateChangelog") {
6-
previousRevision = "v" + project.ext.'shipkit-auto-version.previous-version'
6+
previousRevision = project.ext.'shipkit-auto-version.previous-tag'
77
readOnlyToken = "a0a4c0f41c200f7c653323014d6a72a127764e17"
88
repository = "mockito/mockito-scala"
99
}

0 commit comments

Comments
 (0)