Skip to content

Commit 7b34fb1

Browse files
committed
docs: show latest version in README.md
1 parent 90efc11 commit 7b34fb1

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@ _Keep your code Spotless from the command line_
44

55
<!---freshmark shields
66
output = [
7-
link(shield('Changelog', 'changelog', '{{versionLast}}', 'blue'), 'CHANGES.md'),
7+
link(shield('SpotlessCLI Version', 'latest-version', '{{spotlessVersion}}', 'blue'), 'CHANGES.md'),
88
'',
99
link(shield('OS Win', 'OS', 'Windows', 'blueviolet'), 'README.md'),
1010
link(shield('OS Linux', 'OS', 'Linux', 'blueviolet'), 'README.md'),
1111
link(shield('OS macOS', 'OS', 'macOS', 'blueviolet'), 'README.md'),
1212
].join('\n')
1313
-->
1414

15-
[![Changelog](https://img.shields.io/badge/changelog-versionLast%3DUNKNOWN-blue.svg)](CHANGES.md)
15+
[![SpotlessCLI Version](https://img.shields.io/badge/latest--version-0.1.0-blue.svg)](CHANGES.md)
1616

1717
[![OS Win](https://img.shields.io/badge/OS-Windows-blueviolet.svg)](README.md)
1818
[![OS Linux](https://img.shields.io/badge/OS-Linux-blueviolet.svg)](README.md)

build-logic/src/main/groovy/buildlogic.spotless-markdown-conventions.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ class FreshmarkPropertiesAction implements Action<Map<String, Object>> {
3434
properties.putAll(versionsCollected)
3535
def usageHelps = getUsageHelps()
3636
properties.putAll(usageHelps)
37+
properties.put('spotlessVersion', rootProject.spotlessChangelog.versionLast)
3738
}
3839

3940
Map<String, String> getVersionsCollected() {

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ import com.diffplug.spotless.cli.io.CopySingleTemplateFileTask
33
plugins {
44
id 'buildlogic.spotless-gradle-conventions'
55
id 'buildlogic.spotless-json-conventions'
6+
id 'buildlogic.changelog-conventions'
67
id 'buildlogic.spotless-markdown-conventions'
78
id 'buildlogic.spotless-yaml-conventions'
8-
id 'buildlogic.changelog-conventions'
99
}
1010

1111
subprojects {

0 commit comments

Comments
 (0)