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 b6a69ec
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ jobs:
- name: 3. Build with Kotlin ${{ matrix.kotlin }} and mock-maker ${{ matrix.mock-maker }}
run: |
ops/mockMakerInline.sh
./gradlew build
./gradlew build -s
env:
KOTLIN_VERSION: ${{ matrix.kotlin }}
MOCK_MAKER: ${{ matrix.mock-maker }}
Expand Down
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 b6a69ec

Please sign in to comment.