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' 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) {