From 29569efb2ddec8ddace7b614db2e9ea2c16e3d5d Mon Sep 17 00:00:00 2001 From: Bengt Brodersen Date: Tue, 15 Nov 2022 14:55:52 +0100 Subject: [PATCH] feat: add visible logging for relevant output --- CHANGELOG.md | 6 ++ build.gradle | 2 +- .../GitVersioningPluginExtension.java | 96 ++++++++++--------- .../standardProjectKotlinDSL/build.gradle.kts | 2 +- 4 files changed, 60 insertions(+), 46 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0a89733..b95bc0a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## 6.3.7 + +##### Features +- add visible logging for relevant output + + ## 6.3.6 ##### Fixes diff --git a/build.gradle b/build.gradle index 79aa624..4b404b2 100644 --- a/build.gradle +++ b/build.gradle @@ -12,7 +12,7 @@ plugins { } group 'me.qoomon' -version '6.3.6' +version '6.3.7' sourceCompatibility = JavaVersion.VERSION_11 targetCompatibility = JavaVersion.VERSION_11 diff --git a/src/main/java/me/qoomon/gradle/gitversioning/GitVersioningPluginExtension.java b/src/main/java/me/qoomon/gradle/gitversioning/GitVersioningPluginExtension.java index 52b0305..f627b6a 100644 --- a/src/main/java/me/qoomon/gradle/gitversioning/GitVersioningPluginExtension.java +++ b/src/main/java/me/qoomon/gradle/gitversioning/GitVersioningPluginExtension.java @@ -42,11 +42,10 @@ import static me.qoomon.gitversioning.commons.StringUtil.*; import static org.apache.commons.lang3.StringUtils.leftPad; import static org.apache.commons.lang3.StringUtils.rightPad; +import static org.eclipse.jgit.lib.Constants.HEAD; public abstract class GitVersioningPluginExtension { - public static final Logger LOGGER = LoggerFactory.getLogger(GitVersioningPluginExtension.class); - private static final Pattern VERSION_PATTERN = Pattern.compile(".*?(?(?(?\\d+)(?:\\.(?\\d+)(?:\\.(?\\d+))?)?)(?:-(?