Skip to content

Commit e28a248

Browse files
committed
Enabled automated changelog
Shipkit Auto Version plugin allows to use version from annotated tag. As the plugin provides information about 'previous' version, applying it instead of axion plugin enables automated changelog. Mockito-Kotlin does not use any prefix for tags so it is required to add 'version.properties' file with empty 'tagPrefix' property.
1 parent d90ced6 commit e28a248

File tree

2 files changed

+4
-12
lines changed

2 files changed

+4
-12
lines changed

build.gradle

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,31 +5,22 @@ buildscript {
55
}
66
dependencies {
77
classpath "org.shipkit:shipkit-changelog:1.1.13"
8-
classpath "pl.allegro.tech.build:axion-release-plugin:1.13.0"
8+
classpath "org.shipkit:shipkit-auto-version:1.1.11"
99
classpath "io.github.gradle-nexus:publish-plugin:1.0.0"
1010
}
1111
}
1212

1313
apply plugin: "io.github.gradle-nexus.publish-plugin"
14+
apply plugin: 'org.shipkit.shipkit-auto-version'
1415
apply plugin: "org.shipkit.shipkit-changelog"
1516
apply plugin: "org.shipkit.shipkit-github-release"
16-
apply plugin: "pl.allegro.tech.build.axion-release"
17-
18-
scmVersion {
19-
tag {
20-
prefix = ''
21-
}
22-
}
2317

2418
allprojects {
2519
group = 'org.mockito.kotlin'
26-
version = scmVersion.version
2720
}
2821

29-
println "Building version $version"
30-
3122
tasks.named("generateChangelog") {
32-
previousRevision = scmVersion.previousVersion
23+
previousRevision = project.ext.'shipkit-auto-version.previous-version'
3324
githubToken = System.getenv("GITHUB_TOKEN")
3425
repository = "mockito/mockito-kotlin"
3526
releaseTag = project.version

version.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
tagPrefix=

0 commit comments

Comments
 (0)