Skip to content

Commit

Permalink
Show current version in README
Browse files Browse the repository at this point in the history
  • Loading branch information
ascheman committed Jan 24, 2024
1 parent e9b6c4a commit 9085be3
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
20 changes: 18 additions & 2 deletions README.adoc
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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 <<box:current-version,current version>>

OR

Expand All @@ -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,current version>>

[[box:current-version]]
[IMPORTANT]
.Latest (development) version
====
The current development version is defined in link:gradle.properties[]
[source]
----
include::gradle.properties[tag=version]
----
====

== Usage

Expand Down
2 changes: 2 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# tag::version[]
version=2.0.0-SNAPSHOT
# end::version[]

group = 'org.aim42.htmlSanityCheck'

Expand Down

0 comments on commit 9085be3

Please sign in to comment.