From 9085be32af2a0397332fa20d4299abe4388473cf Mon Sep 17 00:00:00 2001 From: Gerd Aschemann Date: Wed, 24 Jan 2024 16:06:58 +0100 Subject: [PATCH] Show current version in README --- README.adoc | 20 ++++++++++++++++++-- gradle.properties | 2 ++ 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/README.adoc b/README.adoc index 62472d7e..32fd5abb 100644 --- a/README.adoc +++ b/README.adoc @@ -1,4 +1,6 @@ = image:./htmlsanitycheck-logo.png[Html-SC] Html Sanity Check +:icons: font +// Align version with ./gradle.properties file :version: 2.0.0 :plugin-url: https://github.com/aim42/htmlSanityCheck @@ -39,9 +41,10 @@ Use the following snippet inside a Gradle build file: [subs="attributes"] ---- plugins { - id 'org.aim42.{project}' version '{version}' + id 'org.aim42.{project}' version '{version}' // <1> } ---- +<1> Checkout <> OR @@ -57,12 +60,25 @@ buildscript { } dependencies { - classpath ('gradle.plugin.org.aim42:{project}:{version}') + classpath ('gradle.plugin.org.aim42:{project}:{version}') // <1> } } apply plugin: 'org.aim42.{project}' ---- +<1> Checkout <> + +[[box:current-version]] +[IMPORTANT] +.Latest (development) version +==== +The current development version is defined in link:gradle.properties[] + +[source] +---- +include::gradle.properties[tag=version] +---- +==== == Usage diff --git a/gradle.properties b/gradle.properties index 25fd1854..26b61619 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,4 +1,6 @@ +# tag::version[] version=2.0.0-SNAPSHOT +# end::version[] group = 'org.aim42.htmlSanityCheck'