From 1c7942d2b6eabf2988ecd2bb7aeb8b003f4ba813 Mon Sep 17 00:00:00 2001 From: John Rokicki Date: Tue, 8 Sep 2020 00:42:06 -0400 Subject: [PATCH 1/2] fixes #420,#419 --- .../benmanes/gradle/versions/reporter/HtmlReporter.groovy | 2 +- .../gradle/versions/updates/DependencyUpdatesReporter.groovy | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/groovy/com/github/benmanes/gradle/versions/reporter/HtmlReporter.groovy b/src/main/groovy/com/github/benmanes/gradle/versions/reporter/HtmlReporter.groovy index 9a930499..ad757477 100644 --- a/src/main/groovy/com/github/benmanes/gradle/versions/reporter/HtmlReporter.groovy +++ b/src/main/groovy/com/github/benmanes/gradle/versions/reporter/HtmlReporter.groovy @@ -203,7 +203,7 @@ class HtmlReporter extends AbstractReporter { if (getRevision().equalsIgnoreCase("milestone")) { return item.getAvailable().getMilestone() } else if (getRevision().equalsIgnoreCase("release")) { - return item.getVersion() + return item.getAvailable().getRelease() } else if (getRevision().equalsIgnoreCase("integration")) { return item.getAvailable().getIntegration() } diff --git a/src/main/groovy/com/github/benmanes/gradle/versions/updates/DependencyUpdatesReporter.groovy b/src/main/groovy/com/github/benmanes/gradle/versions/updates/DependencyUpdatesReporter.groovy index efce8207..3551c9be 100644 --- a/src/main/groovy/com/github/benmanes/gradle/versions/updates/DependencyUpdatesReporter.groovy +++ b/src/main/groovy/com/github/benmanes/gradle/versions/updates/DependencyUpdatesReporter.groovy @@ -121,7 +121,8 @@ class DependencyUpdatesReporter { project.logger.lifecycle '\nGenerated report file ' + filename } - Reporter getOutputReporter(def formatter) { + Reporter getOutputReporter(String formatterOriginal) { + String formatter = formatterOriginal.replaceAll("\\s", "") def reporter switch (formatter) { From 5c304ef50551af0515522cd406ca3bb266da823e Mon Sep 17 00:00:00 2001 From: John Rokicki Date: Tue, 8 Sep 2020 00:50:27 -0400 Subject: [PATCH 2/2] update to 0.31.0 --- build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index d66ac574..f102f24e 100644 --- a/build.gradle +++ b/build.gradle @@ -23,7 +23,7 @@ apply plugin: 'nexus' apply plugin: 'codenarc' group = 'com.github.ben-manes' -version = '0.30.0' +version = '0.31.0' sourceCompatibility = '1.8'