Skip to content

Commit

Permalink
Enabled automated changelog
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
shestee committed May 19, 2021
1 parent d90ced6 commit 906c4da
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 deletions.
15 changes: 3 additions & 12 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,31 +5,22 @@ buildscript {
}
dependencies {
classpath "org.shipkit:shipkit-changelog:1.1.13"
classpath "pl.allegro.tech.build:axion-release-plugin:1.13.0"
classpath "org.shipkit:shipkit-auto-version:1.1.11"
classpath "io.github.gradle-nexus:publish-plugin:1.0.0"
}
}

apply plugin: "io.github.gradle-nexus.publish-plugin"
apply plugin: 'org.shipkit.shipkit-auto-version'
apply plugin: "org.shipkit.shipkit-changelog"
apply plugin: "org.shipkit.shipkit-github-release"
apply plugin: "pl.allegro.tech.build.axion-release"

scmVersion {
tag {
prefix = ''
}
}

allprojects {
group = 'org.mockito.kotlin'
version = scmVersion.version
}

println "Building version $version"

tasks.named("generateChangelog") {
previousRevision = scmVersion.previousVersion
previousRevision = project.ext.'shipkit-auto-version.previous-version'
githubToken = System.getenv("GITHUB_TOKEN")
repository = "mockito/mockito-kotlin"
releaseTag = project.version
Expand Down
1 change: 1 addition & 0 deletions version.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
tagPrefix=

0 comments on commit 906c4da

Please sign in to comment.